Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
288 views
in Technique[技术] by (71.8m points)

javascript - Change zoom in out icon color of google map

I want to change the color of zoom in out and the fullscreen button icon gray to white. But, I can't change color with CSS as these icon's format is SVG. is it possible to change color?

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I have changed the button color using CSS. Just select the CSS class and use the CSS filter property

#map .gm-fullscreen-control > img:nth-child(1) {
    filter: brightness(3.5) !important;
    -webkit-filter: brightness(3.5) !important;
}

I hope it will be helpful for others :)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...