This jQuery plugin allows you to attach your own custom InfoWindow to Maker objects.
Usage
1. Create your own InfoWindow in HTML
<div id="bubble-1" class="chat-bubble" style="display:none"> <div class="bubble-content"> Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. </div> <div class="chat-bubble-arrow" /> </div>
2. Attach it to Marker object.
$("#bubble-1").infowindow({ map:map, /** @type {google.maps.Map} */ marker:marker1, /** @type {google.maps.Marker} */ iconHeight: 32, /** heigh of marker's icon */ arrowHeight: 9, /** heigh of InfoWindow's arrow */ arrowWidth: 18, /** width of InfoWindow's arrow */ arrowLeft: 125, /** position of InfoWindow's arrow */ showOn: 'click', /** marker's MouseEvent */ disableAutoPan:false /** disable auto-pan on open */ });
Another way to use.
var bubble3 = '<div id="bubble-3" class="chat-bubble">'+ '<div class="bubble-content">'+ 'Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.'+ '</div>'+ '<div class="chat-bubble-arrow" />'+ '</div>'; $("#bubble-3").infowindow({ map:map, marker:marker3, iconHeight: 32, arrowHeight: 9, arrowWidth: 18, arrowLeft: 200, showOn: 'click' });