谷歌地图api v3定制infowindow框? [英] custom infowindow box with google maps api v3?
本文介绍了谷歌地图api v3定制infowindow框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在Google Maps API中拥有一个自定义的infowindow框。如果这是不可能的,我想至少删除弹出窗口的圆角。这可能吗?
我尝试过使用
InfoWindow({ b $ b content:< h3>+ title +< / h3>,
pre>
boxStyle:{styles}
})
但boxStyle什么都不做。 您可以使用来自 Google地图实用程序库的InfoBox类。或者你可以编写一个自定义类覆盖默认样式
I am trying to have a custom infowindow box in the google maps api. If that is not possible, I want to at least remove the rounded corners for the popup. Is this possible?
I tried useing
InfoWindow({ content: "<h3>" + title + "</h3>", boxStyle: { styles } })
but boxStyle does nothing.
解决方案You can use an InfoBox class from Google Maps Utility Library. Or you can write a custom class overriding the default styling
这篇关于谷歌地图api v3定制infowindow框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文