Hello all,
I'm trying to add a listener on a polygon loaded with a kml file. I
tried to do like this :
map = new GMap2(document.getElementById("map_canvas"));
geoXml = new GGeoXml("http://www.my-domain/my_file.kml");
map.addOverlay(geoXml);
GEvent.addListener(geoXml, "click", function() {
alert('test');
}
);
but it doesn't seem to work. How could I do to make it work ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---