Wasn't it Happy who wrote:
>
>OK, i will take a look on it, thank you.
>May i have one more question to you? What do you think about explicit
>call of map.addOverlay before GEvent.trigger(...,"click") call in the
>click event handler ? Are there any risks related to this approach
>? Because it's functional ...

The problem is that the MarkerManager doesn't know that you've called 
addOverlay() on a marker that it manages, so the marker can get 
addOverlay()ed twice. Similarly, if your code doesn't check to see if 
the marker is currently added, the marker can get addOverlay()ed twice. 
That can cause the API to crash under some circumstances.

It's safer to use the map.openInfoWindow() trick. See the last section 
of http://econym.org.uk/gmap/markermanager.htm for a chunk of code that 
you can copy.

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to