I need to have a tooltip with a GPolygon. Is there a good suggestion/
example on how to do this?
var polygonArray = [ new GLatLng("39.38937666218326",
"-76.60614788532257"), new GLatLng("39.390189253295915",
"-76.60422205924988"), new GLatLng("39.39057896200272",
"-76.60587430000305")];
var polygon = new GPolygon(polygonArray, "FFFFFF", 1000, .5,
"FFFFFF", .5, null);
map.addOverlay(polygon);
GEvent.addListener(polygon, "mouseover", function() {
alert("here");
});
This is the code I have been using to capture the mouseover event but
it is firing anywhere i click on the map.
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---