consider the following simple code:
GEvent.addListener(map, "click", function(overlay, latLng)
{
if (overlay)
{
overlay.openInfoWindowHtml("contents of info window")
}
})
on marker click info window opens with text inside, although this code
also fires when clicked inside infowindow itself, which obviously
doesnt have openInfoWindow method - resulting in an error.
is there any way to detect overlay type?
assigning event to marker is not an option for me..
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---