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
Jul 22, 2021 at 9:49 history edited Nicolas Borowicz CC BY-SA 4.0
added 125 characters in body
Jul 22, 2021 at 9:40 comment added Nicolas Borowicz I did not see that someone had a similar answer. But in Sil's answer you have to create class for each color you need and as asked in the question, we want to be able to change color randomly. With my answer, you are avec to generate a number randomly in order to change color.
Jul 21, 2021 at 22:26 comment added SiKing Is this answer better than the existing stackoverflow.com/a/61982880/3124333?
Jul 20, 2021 at 14:40 review Late answers
Jul 21, 2021 at 22:26
Jul 20, 2021 at 14:24 history answered Nicolas Borowicz CC BY-SA 4.0