hallahan / LeafletPlayback

This is a Leaflet plug-in that plays back points that have a time stamp synchronized to a clock.
http://leafletplayback.theoutpost.io
Other
482 stars 165 forks source link

Playback speed #39

Open cratu opened 8 years ago

cratu commented 8 years ago

Why in L.Playback.PlayControl, onAdd function used

playback.setSpeed(100);

(src/Control.js line 55)? This code ignores options.speed, may be it shoud be

playback.setSpeed(this.playback._speed);

?

answerquest commented 6 years ago

i was wondering why my custom speed option wasn't having any effect!

covertg commented 3 years ago

Cheers @cratu ! That did the trick exactly.

For anyone looking, the change is implemented here alongside a couple other folks' updates: https://github.com/covertg/LeafletPlayback/

carys23 commented 1 year ago

Has anyone able to use this to speed up even more I have found that if you remove the milliseconds it speeds it up but the time is not correct because you have to convert it back then it has the wrong time. So I'm looking for a way outside the main function. Did any mange to speed the time up working with real data that comes through every 5mintutes so it's way to slow