Changing background color in Google Map InfoWindow

岁酱吖の 提交于 2019-12-19 07:12:56

问题


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:


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.



来源:https://stackoverflow.com/questions/3610884/changing-background-color-in-google-map-infowindow

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