Leaflet.MovingMarker icon indicating copy to clipboard operation
Leaflet.MovingMarker copied to clipboard

Adjust animation speed

Open fnogatz opened this issue 9 years ago • 2 comments

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.

fnogatz avatar Apr 14 '15 18:04 fnogatz

I think that it is user's responsibility, isn't it ? :-)

ewoken avatar Nov 11 '15 18:11 ewoken

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.

fnogatz avatar Nov 11 '15 18:11 fnogatz