after messing with the alert() for a couple of minutes, I had realized
that I am using the entire array as points so I think that has a good
chance for infowindow not opening.

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?
On Dec 6, 5:50 pm, daniel <[EMAIL PROTECTED]> wrote:
> Mike thanks,
>
> Not sure what I was thinking at the time.
>
> I have fixed all of the reading in from xml. So now the polygons are
> showing up on the map.  but I still am unable have the infowindow
> open.
>
> This is what I have:
> GEvent.addListener(poly, "click", function() {
> //alert("hello world");
> map.openInfoWindowHtml(pts, <div>hello</div>);
>
> });
>
> pts is from what is read in from xml.
>
> I am not seeing any errors in error console, what am I overlooking?
>
> On Dec 6, 12:57 am, Mike Williams <[EMAIL PROTECTED]> wrote:
>
> > Wasn't it daniel who wrote:
>
> > >GEvent.addListener(poly, "click", function() {
> > >map.openInfoWindowHtml(pbuilding);
> > >});
>
> > map.openInfoWindowHtml() requires two parameters: the GLatLng and the
> > HTML. THat's different from marker.openInfoWindowHtml() because the API
> > knows the GLatLng of the marker.
>
> > --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