1

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

Sandip Solanki
  • 704
  • 1
  • 8
  • 15
  • Have you tried any of the other allowed values of elementType, such as `'labels.icon'| 'labels.text'|'labels.text.fill'|'labels.text.stroke'`? – Adam Sep 25 '17 at 13:36
  • @Adam yes but its change google default label colorbut i eant change my dynamic table text color – Sandip Solanki Sep 26 '17 at 06:35

1 Answers1

2

solved by change css :

.gm-style div{color: #fff !important; font-weight: bold;}
Sandip Solanki
  • 704
  • 1
  • 8
  • 15