InfoWindows on google map -
does can kind of google infowindows infowindows function google map api 3 when click on marker ?
http://i40.tinypic.com/25unplc.png
var infowindow = new google.maps.infowindow({ content:"hello world!" }); google.maps.event.addlistener(marker, 'click', function() { infowindow.open(map,marker); }); i not able line break in information windows...
add html code infowindow apply styles like:
var contentstring = '<div id="content">'+ '<h2>meta creation</h2><br/>'+ '<div id="bodycontent">'+ ' '+ '</div>'+ '</div>'; infowindow.setcontent(contentstring); note: used of html tags show example. change according requirement.
Comments
Post a Comment