I have read your help but it doesnt solve my problem. singlerightclick
listener returns in POINT relative coordinates values. But I need
GLatLng coordinates values (for function contains)


//polys= array of polygons
GEvent.addListener(map, "singlerightclick", function
(POINT,src,overlay) {
        if (!overlay) {
          for (var i=0; i<polys.length; i++) {
            if (polys[i].Contains(point)) {
              map.openInfoWindowHtml(point,"You clicked on ");
              i = 999; // Jump out of loop
            }
          }
        }
      });
--~--~---------~--~----~------------~-------~--~----~
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