leaflet.migrationLayer
leaflet.migrationLayer copied to clipboard
Timing is reset on map move
Whenever the map is moved, the animation of all arrows resets: if a spark is in the middle of a long arc, moving the map will reset it back to the beginning of the arc instantaneously.
It would be better if the position of the arrows/sparks would be consistent. I suggest adding some kind of timer, or a global counter for the number of frames rendered. Then base the position of the arrows/sparks based on that.