我希望 Google 地图实现中的 InfoWindows 具有黑色背景颜色。 InfoWindows 没有“backgroundColor”选项。 请参阅此处。
我在内容选项中放置了一个黑色背景和白色文本的 div 标签。然而,它仍然呈现白色边框。
有谁知道如何获得全黑背景?
感谢您提前提供的任何帮助。
I want my InfoWindows in my Google Map implementation to have a black background color. "backgroundColor" is not an available option for InfoWindows. See here.
I put a div tag in the content option with a black background and white text. However, that still renders with a white border.
Does anyone know a way to get a completely black background?
Thanks for any help in advance.
发布评论
评论(1)
如果您想要完全控制背景,但又想要 InfoWindow 的优点,那么您可以使用 Google 地图实用工具库的“nofollow noreferrer">InfoBox。
If you want complete control over the background but want the niceties of InfoWindow, then you can can use the InfoBox from the Google Maps Utility library.