Tagged: leaflet grayscale
Hey,
I would like to make the leaflet map grayscale. But just the map, not the markers.
If I use the grayscale selector in ALB everything turns into grayscale.
I would be glad, if anybody knows how this is possible?
Thanks a lot
Thorsten
Hey ThorstenFB,
Please link to your map page so we can examine the elements.
Best regards,
Mike
Hey Mike,
thanks a lot for your quick reply! You’ll find the link in the private content.
Best regards,
Thorsten
Hi,
Thank you for the link to your site, try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:
.leaflet-tile-pane {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
filter: grayscale(100%);
filter: gray;
}
After applying the css, please clear your browser cache and check.
Best regards,
Mike
Thanks Mike! Works perfect!! Great!
Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike