Sandip Solanki
Sandip Solanki

Reputation: 743

How to change angular 2 google map marker label color?

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 ...

Upvotes: 1

Views: 4804

Answers (1)

Sandip Solanki
Sandip Solanki

Reputation: 743

solved by change css :

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

Upvotes: 2

Related Questions