views:

11

answers:

0

I am working on an implementation of Google Maps using the V3 API. I've got all the directions working, but what I'm looking to do is change the markers that are used for the start and end points. I know I can suppress all markers or set all markers to a different icon with the option on the DirectionsRenderer, but I want the start and end markers to be 2 separate images.

What we're currently doing is suppressing markers, and then adding new markers at the locations of the first and last steps of the directions route. However, clicking on them doesn't show the standard pop-up that the other steps show, and that normally show with the default markers. I could create a pop-up for those with the content for the step, but it doesn't automatically hide when another one of the step pop-ups get shown.

So how can I just change the image of the default markers? I've yet to find any way to even access them.