Marker and polygon tooltips in Google Maps v3
Thursday, September 15th, 2011Before I get into the details, please note that this is a quick & dirty solution using google.maps.InfoWindow. No demo, sorry, but please add your improvements in the comments! Marker tooltip I start with the marker, as it is the simplest implementation: function attachMarkerInfoWindow(marker, html) { marker.infoWindow = new google.maps.InfoWindow({ content: html, }); google.maps.event.addListener(marker, 'mouseover', function() { marker.infoWindow.open(map,marker); }); google.maps.event.addListener(marker, 'mouseout', ...