Google Map with tango venues and driving directions

1 view
Skip to first unread message

PeterE

unread,
Jul 17, 2007, 6:25:09 AM7/17/07
to Tango 2.0
I made a Google Map that displays tango venues from one or more kml's
and allows to get driving directions from any address to the currently
selected venue.

In a sidebar I wanted to display the Placemark names for each kml that
is loaded. That would make it much easier to locate a venue then
clicking the markers on the map to see which venue it is. It was a bit
more work than I first thought...
I had to parse the kml myself (loading with GGeoXml doesn't allow
access to the content) and generate map-click events when a Placemark
name is clicked so that the corresponding marker on the map is
selected.

The directions were easy to implement, just standard Google maps api
stuff (http://www.google.com/apis/maps/documentation/
#Driving_Directions).

I also added a little menu on the map that allows to zoom in on a city
or region directly.

You can see the result here:
http://users.telenet.be/cr28173/tango/places/tango-belgium-map.html

I'd like to hear your remarks if you have any.

And if PeterF wants to make an embedding tool for it, go ahead :)

Reply all
Reply to author
Forward
0 new messages