Waypoint overlays

51 views
Skip to first unread message

Adriano Manocchia

unread,
Oct 24, 2011, 5:38:29 PM10/24/11
to google-map...@googlegroups.com
I'm using Google Maps to provide walking directions with multiple stops, but I can't seem to find any way to customize the popup overlay on each stop. It just shows the address I've provided for each waypoint. Is there any way to change that?

geoco...@gmail.com

unread,
Oct 24, 2011, 8:20:04 PM10/24/11
to Google Maps JavaScript API v3
Yes. Use the suppressMarkers option on the Directions Renderer, then
add your own markers with click listeners that open an infowindow
("popup") with whatever content you want in it.

Here is an example that renders the directions result from scratch,
but it shows how to add markers at the start, waypoint and end.
http://www.geocodezip.com/v3_GoogleEx_directions-waypointsF.html

-- Larry

Adriano Manocchia

unread,
Oct 25, 2011, 10:41:10 AM10/25/11
to google-map...@googlegroups.com
Perfect! Thank you!
Reply all
Reply to author
Forward
0 new messages