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.
addListener(marker, 'mouseover', function() { infoWindow. setContent(html); infoWindow. open(map, marker); //infoWindow. setStyle("background-color: red"); });
An InfoWindow displays content (usually text or images) in a popup window above the map, at a given location. The info window has a content area and a tapered stem. The tip of the stem is attached to a specified location on the map. Info windows appear as a Dialog to screen readers.
The user can click the close button on the InfoWindow to remove it from the map, or the developer can call close() for the same effect.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With