Google Maps API v3 Tooltips

HTML

<script src="//maps.googleapis.com/maps/api/js?sensor=true"></script>
<script src="https://rawgit.com/sinky/google.tooltip.js/master/google.tooltip.js"></script>
<div id="map_canvas">map</div>

CSS

html { height: 100% }
body { height: 100%;font-family: Verdana, Arial, Helvetica, sans-serif; }
*{margin: 0; padding: 0}
#map_canvas { height: 100% }

/* This class is used to style the tooltip */
.googleTooltip {
  position: absolute;
  visibility: hidden; /* initial state */

  /* Optional Style */
  border-radius: 5px;
  background-color: rgba(0,0,0,0.7);
  color: #fff;
  padding: 5px;
  max-width: 200px;
}

.googleTooltip.hover {
  visibility: visible;
}

/* Arrow */
.googleTooltip:after {
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-color: rgba(0, 0, 0, 0);
  border-width: 5px;

/* Bottom Tooltip Arrow */
  bottom: 100%;
  left: 50%;
  border-bottom-color: rgba(0,0,0,0.7);
  margin-left: -5px;

/*
Top Tooltip Arrow
  top: 100%;
  right: 50%;
  border-top-color: rgba(0,0,0,0.7);
  margin-right: -5px;

Right Tooltip Arrow
  top: 50%;
  right: 100%;
  border-right-color: rgba(0,0,0,0.7);
  margin-top: -5px;

Left Tooltip Arrow
  top: 50%;
  left: 100%;
  border-left-color: rgba(0,0,0,0.7);
  margin-top: -5px;
*/
}

JavaScript

var demoPlaces = [];
  demoPlaces.push({ infowin_html: "<h3><a href='http://en.wikipedia.org/wiki/Oak_Park,_Illinois' target='_blank'>Oak Park, Illinois</a></h3><div><img src='http://upload.wikimedia.org/wikipedia/commons/thumb/7/76/Habs_flw_oak_park_home.jpg/220px-Habs_flw_oak_park_home.jpg' width='220' hieght='174' /></div><div>Oak Park, Illinois is a suburb bordering the west side of the city of Chicago in Cook County, Illinois, United States. It is the twenty-fifth largest municipality in Illinois. Oak Park has easy access to downtown Chicago (the Chicago Loop) due to public transportation such as the Chicago 'L' Blue and Green lines, CTA buses, and Metra commuter rail. The 2000 census showed that the area had a total population of 52,524. As of the 2010 census, the population had dropped by 1.2 percent to 51,878.</div>", tooltip_html: "<h3>Oak Park, Illinois</h3><div><stong>Population:</strong> 52k</div>Click for more..", position: { lat: 41.883333, lng: -87.8 } });
  demoPlaces.push({ infowin_html: "<h3><a href='http://en.wikipedia.org/wiki/Chicago,_Illinois' target='_blank'>Chicago, Illinois</a></h3><div><img src='http://upload.wikimedia.org/wikipedia/commons/thumb/0/06/20070909_Chicago_Half_Marathon.JPG/220px-20070909_Chicago_Half_Marathon.JPG' width='220' hieght='174' /></div><div>Chicago is the largest city in the U.S. state of Illinois and the third most populous city in the United States, with around 2.7 million residents. Its metropolitan area, sometimes called \"Chicagoland,\" is the third largest in the United States, with an estimated 9.8 million people in the states of Illinois, Wisconsin and Indiana. Chicago is the county seat of Cook County.</div>", tooltip_html: "<h3>Chicago, Illinois</h3><div><stong>Population:</strong> 2.7m</div>Click for more..", position: { lat: 41.881944, lng: -87.627778 } });
  demoPlaces.push({ infowin_html: "<h3><a href='http://en.wikipedia.org/wiki/Evanston,_Illinois' target='_blank'>Evanston,...