Map click events can either return a point or an overlay. You need to
check which of those has happened before opening the "Clicked here"
window:
GEvent.addListener(map,"click", function(point,overlay){
if (point) {
map.openInfoWindowHtml(point, "Clicked Here");
}
});
--
Mike Williams
http://econym.org.uk/gmap
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---