On Nov 14, 10:05 am, jerome <[EMAIL PROTECTED]> wrote:
>   GEvent.trigger(map, "click", undefined, newCenterLatLng);  <<<
> PROBLEM HERE
>
> Unfortunatelly this does not work since the parameter overlay is lost
> as soon as I pass something as a parameter in the function.

I'm not sure what "overlay is lost" means. Have you tried using null
instead of undefined? The function you quote doesn't appear to need
the overlay passed to it.

>   GEvent.trigger(map, "click", map.getoverlay(newCenterLatLng),
> newCenterLatLng);  <<< HOW TO DO THAT ?

The only way of getting a marker at a particular location is to write
your own function which loops through all your markers and returns the
one which matches. To do that you would need to retain a reference to
every marker you add, probably in a global array.

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