How to create a greyscale map with colored marker
-
I am using the following CSS to make the map greyscale; this works. But I’ve tried to turn greyscale off for the marker, and it’s not working. Any suggestions?
#wpmapblock_1737a57b { -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale(100%); filter: grayscale(100%); filter: gray; } #wpmapblock_1737a57b .leaflet-marker-pane, #wpmapblock_1737a57b .leaflet-pane.leaflet-marker-pane, #wpmapblock_1737a57b .leaflet-pane.leaflet-marker-pane img { -webkit-filter: grayscale(0) !important; -moz-filter: grayscale(0) !important; -ms-filter: grayscale(0) !important; -o-filter: grayscale(0) !important; filter: grayscale(0) !important; filter: none !important; }
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to create a greyscale map with colored marker’ is closed to new replies.