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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -