Wasn't it daniel who wrote:

>So I am curious as to how do i know the user has clicked the polygon --
>how to  i get that point to open the infowindow?

You have to decide which point you want to use to open the infowindow
on. One possibility is to open it at the point where the user clicked:

GEvent.addListener(poly, "click", function(point) {
  map.openInfoWindowHtml(point, "hello");
});

Or you might want to open it at the centre of the bounds of the poly

GEvent.addListener(poly, "click", function() {
  map.openInfoWindowHtml(poly.getBounds().cetCentre(), "hello");
});

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