google.maps.event.addListener(poly2, 'click', function() {
poly_window2.open(map, poly2);
To quote
http://code.google.com/apis/maps/documentation/javascript/overlays.html#InfoWindows
"InfoWindows may be attached to either Marker objects (in which case
their position is based on the marker's location) or on the map itself
at a specified LatLng."
It can't tell where you want it to open if you give it a polygon as
the second argument.
You'll probably want to calculate the centroid or choose a corner of
your poly and use that lat/long
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.