Changing background color in Google Map InfoWindow

2020-03-19 20:34发布

问题:

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.