开发者

how to change the width and height of infowindow on google-maps-v3

开发者 https://www.devze.com 2022-12-25 23:37 出处:网络
i want to set the width and height of the infowindow using v开发者_开发知识库3 thanksTry adding a div with desired width, height and content inside the InfoWindow using InfoWindow.setContent() method

i want to set the width and height of the infowindow using v开发者_开发知识库3

thanks


Try adding a div with desired width, height and content inside the InfoWindow using InfoWindow.setContent() method.


The info window will adjust its height automatically to fit all the contents, but if you want a width that is different from the standard you have to set it through the InfoWindow options.

I would recommend putting a div with a set height into the infowindow via the setContent.

0

精彩评论

暂无评论...
验证码 换一张
取 消