在Google Map InfoWindow中更改背景颜色 [英] Changing background color in Google Map InfoWindow

查看:744
本文介绍了在Google Map InfoWindow中更改背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我的Google Map实现中的InfoWindows具有黑色背景色。 backgroundColor不是InfoWindows的可用选项。 请参阅此处



我在黑色背景和白色文本的内容选项中放置了一个div标签。然而,这仍然呈现一个白色的边框。



有谁知道一种方法来获得完全黑色背景?

<如果你想完全控制背景,但想要InfoWindow的细微处理,那么可以使用 解析方案

您可以使用 InfoBox Google Maps Utility 库。


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.

解决方案

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.

这篇关于在Google Map InfoWindow中更改背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆