Leaflet.MovingMarker
Leaflet.MovingMarker copied to clipboard
Adjust animation speed
I've added a marker.setSpeed(number)
option to adjust the speed of the animation. setSpeed(2)
is double speed, setSpeed(1)
is normal.
This method works both on running markers and paused ones. Examples were added.
I think that it is user's responsibility, isn't it ? :-)
I would only agree if it is trivial to implement without touching core. Because adjusting speed is a typical use case, I created this PR. But it's up to you.