Resize the infoWindow box Google Maps API v3

荒凉一梦 提交于 2019-12-06 10:13:40

The native infoWindow has a minimum size. If it is to big for you, you need to look at using an alternative solution like infoBubble or InfoBox

  1. your CSS section doesn't do anything because var infoWindow is not the same as <div id="infoWindow">

  2. The documentation says:

maxWidth: Maximum width of the infowindow, regardless of content's width. This value is only considered if it is set before a call to open. To change the maximum width when changing content, call close, setOptions, and then open.

Also what Larry, (geocodezip), said. (he types faster than me) ;-)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!