在谷歌地图上显示地名等信息,类似infowindow
function Tooltip(options) { this.marker_ = options.marker; this.content_ = options.content; this.map_ = options.marker.get('map'); this.cssClass_ = options.cssClass || null; this.is_hidden = options.is_hidden === undefined ? !0 : options.is_hidden; this.div_ = null; this.setMap(this.map_); var me = this; if(this.is_hidden){ google.maps.event.addDomListener(me.marker_, 'mouseover', function(){ me.show(); }); google.maps.event.addDomListener(me.marker_, 'mouseout', function(){ me.hide(); }); } } Tooltip.prototype = new google.maps.OverlayView(); Tooltip.prototype.onAdd = function() { var div =