How to change the InfoWindow Background color

前端 未结 2 1513
南方客
南方客 2021-02-06 02:40

I\'m facing the problem,My google Map API showing default InfoWindow with background color white.I want change the White color to Black color. REF CODE:

google.m         


        
2条回答
  •  太阳男子
    2021-02-06 03:12

    You can use the InfoBox here in Google Maps Utility.

    This class behaves like google.maps.InfoWindow, but it supports several additional properties for advanced styling. An InfoBox can also be used as a map label.

    You can also use CSS to style it. By checking this tutorial and this, it will give you a sample code on how to do it.

提交回复
热议问题