google maps - maxWidth for infowindow in googlemaps? -
the part of google maps code creates info windows this:
google.maps.event.addlistener(marker, 'click', function () { infowindow.setcontent(this.html); infowindow.open(map, this); }); i need set max width of 250px infowindow cant work. there syntax error following:
google.maps.event.addlistener(marker, 'click', function () { infowindow.setcontent(this.html); infowindow.maxwidth(250); infowindow.open(map, this); });
working:
google.maps.event.addlistener(marker, 'click', function () { // have added .html marker object. infowindow.setcontent(this.html); infowindow.setoptions({maxwidth:250}); infowindow.open(map, this); });
Comments
Post a Comment