Make markers appear one after the other
-
Hello,
I am looking for a way to create a kind of animated “journey” on a map.
The goal is to make markers appear one after the other, like drawing a path journey in an interactive way.As pure javascript with leaflet lib, i would do a markers array, and i would loop over it with a setInterval to add it on the map.
As an example, here is an example map : https://actualitte.com/uploads/images/voyage_Ulysse_carte_interactive-84253801-5442-423f-b744-5eec6e0ddff5.jpg
My goal is to put the marker 1 at first, then 500ms after (customizable time), add the n° 2, etc, …
The path between markers could be other “dot” markers that i add on the map and appear one after the other too.But with the plugin I don’t know if there is any way to do that ? Any ideas ?
Thanks.
- The topic ‘Make markers appear one after the other’ is closed to new replies.