Hi Matt-
You can change the icons with DirectionsRenderer.
First set the value "DirectionsRendererOptions.suppressMarkers =
true", then pass to the DirectionsRenderer.
After that, get legs from DirectionsResult.
(DirectionsResult > routes > legs > start_location and end_location)
In use this example case:
http://code.google.com/apis/maps/documentation/javascript/examples/directions-complex.html
add the suppressMarkers property like this:
----------------------------------------
var rendererOptions = {
map: map,
suppressMarkers : true
}
directionsDisplay = new
google.maps.DirectionsRenderer(rendererOptions);
----------------------------------------
and add the code at the showSteps function:
-----------------------------------------
function showSteps(directionResult) {
var myRoute = directionResult.routes[0].legs[0];
for (var i = 0; i < myRoute.steps.length; i++) {
:
}
//add the last point marker
var marker = new google.maps.Marker({
position: myRoute.steps[i - 1].end_point,
map: map,
icon: "
http://xxxxx/icon.png"
});
}
-----------------------------------------
I hope it can help you.