it works!!!
thanks

On Sun, Nov 1, 2009 at 2:13 PM, Rossko <[email protected]> wrote:

>
> > if user click on map on polygon overlay then the latlng  param is
> > null .
> > why?
>
> Because that's the way it works.
> See the documentation -
> http://code.google.com/apis/maps/documentation/reference.html#GMap2.click
> when you click on a bare map, you get latlng
> when you click on a poly, you get null latlng and get the overlay
> instead.
> if you really want to know the latlng when clicking on a poly, it is
> in a THIRD parameter of the event for your convenience
> http://code.google.com/apis/maps/documentation/events.html#Event_Arguments
>
> > how can I avoid the Polygon in information mode?
>
> Don't make the poly clickable.
> >
>


-- 
Tali Aviram

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