How to change angular 2 google map marker label color?

4.7k views Asked by At

enter image description herehello I am using Angular2 Google Maps and i want change my maker label color

code :

<agm-map [zoom]="7" [latitude]="lat" [longitude]="lng" [styles]='[
            {
                elementType : "labels.text",
                stylers : [{
                   color:"#ffffff"
                }]
            }]'> <agm-marker>....</agm-marke>

please help me ...

1

There are 1 answers

0
Sandip Solanki On BEST ANSWER

solved by change css :

.gm-style div{color: #fff !important; font-weight: bold;}