Customize popup window for waypoints

635 views
Skip to first unread message

Jelle

unread,
Jul 26, 2011, 11:12:15 AM7/26/11
to Google Maps JavaScript API v3, billy...@gmail.com
I am building a tool to create a roundtrip through France, based upon
the Google example of 'direct waypoints'.

It is working great, but I would like to be able to change the popup
that appears when a user clicks a waypoint. Now, it shows the address
of the waypoint in an infobox. I would like to fill the infobox with
my own information, like the name of a hotel that is subtracted from
the database, instead of the address.

This is the link to my example:

http://www.chambresdhoteswijzer.nl/scripts/maproute-test.html

I have tried adding markers and all that stuff, but I can't get it to
work. Does anyone have an idea on how to do this?

Thanks in advance.

geoco...@gmail.com

unread,
Jul 26, 2011, 4:50:00 PM7/26/11
to Google Maps JavaScript API v3
Does this help?
http://www.geocodezip.com/v3_GoogleEx_directions-waypointsE.html

-- Larry
>
> Thanks in advance.

Chris Broadfoot

unread,
Jul 26, 2011, 9:50:18 PM7/26/11
to google-map...@googlegroups.com, billy...@gmail.com
You can use all of the existing functionality of the DirectionsRenderer, but with your own InfoWindow:

You can actually use any InfoWindow-like object (like InfoBubble) to customize the popup.

Try listening for content_changed.

--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.


Reply all
Reply to author
Forward
0 new messages