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

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

formula - R: how to pass in a reference to the variable in glm or lm? -