GGeoXml doesn't give you a reference to the polygon, so you can't addListener on it directly.
GGeoXml already does have a listener on the polygon. It opens the info window and displays the <details> from the kml file. You could use a GGeoXml replacement: EGeoXml or GeoXml, which do give you an array of references to the polygons. If you don't need your code to be futureproof, you could listen for the undocumented "infowindowprepareopen" event, like this page does for GGeoXml markers. http://econym.org.uk/gmap/example_interceptor.htm -- 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 -~----------~----~----~----~------~----~------~--~---
