Currently I have an overlay of all of the state borders, which I am
retrieving from a DB(mySQL) and drawing the polygons on to the map. Now
on click I would like info window to pop up. Here is the click listener:

google.maps.event.addListener(poly, "click", function(event){
alert('1');
var infowindow = new google.maps.InfoWindow();
infowindow.setContent("test");
infowindow.setPosition(event.latLng);
infowindow.open(map, poly);
alert('2');
});

I have tried many different things all with the same results pretty
much. Both alerts show up on click, but infowindow does not. I do not
get any errors either when I run this code. All the polygons show up
perfectly, as well as all of the other listeners like mouseover and
mouseout work fine.

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

Reply via email to