Sorry, I guess i got the key.
I add listener every time i create overlay (marker or polygon). Thats why it
is called so many times =) after event.
Then i registered GEventListener only 1 time just after map creation and now
it is work exactly i want it does: i.e. 1 time after event.

Anton.

2010/2/12 Antsu <[email protected]>

> Hello. I've not found any solution for my problem in the Internet. So,
> let me write the question in this forum:
> I have several markers and polygons on my map, from 1 to 1000. Also i
> want to:
> GEvent.addListener(map, "singlerightclick", function(point)
>        {
>            if (point)
>            {
>                var myHtml = "The GPoint value is: " +
> map.fromContainerPixelToLatLng(point) + " at zoom level " +
> map.getZoom();
>
> map.openInfoWindow(map.fromContainerPixelToLatLng(point), myHtml);
>            }
>        });
>
> It works well. BUT: it is called many times for every overlay.
>
> Is there any way to call this event processor only 1 time?
>
> Thank you, very much.

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