Skip to main content

Timeline for Leaflet changing Marker color

Current License: CC BY-SA 4.0

5 events
when toggle format what by license comment
Nov 23, 2023 at 16:24 comment added Caustix With Angular the style needs to be in the root styles.css and not in the component css file
Dec 19, 2022 at 19:49 comment added Michael Higgins any way to do this but with an arbitrary color?
Dec 6, 2022 at 10:21 comment added Simon You can also directly change the style (without using a class) if you need more flexibility: marker._icon.style.filter = "hue-rotate(120deg)"
Mar 9, 2022 at 23:29 comment added Ryan Griggs This works and is by far the easiest way without creating custom graphics or depending on a library or CDN. Thanks for sharing!
May 24, 2020 at 7:30 history answered sil CC BY-SA 4.0