socib / Leaflet.TimeDimension

Add time dimension capabilities on a Leaflet map.
MIT License
433 stars 138 forks source link

First frame is always skipped #184

Open keul opened 4 years ago

keul commented 4 years ago

After the TimeDimension control is run at least once, there's no way to see the first frame if not manually resetting it with the slider.

This something not easy to be seen if you have a lot of frames, but with few frame and the startOver option activated you can easily reproduce this.

See https://codesandbox.io/s/leaflettimedimension-ch5ss

bielfrontera commented 4 years ago

Hi @keul, I think that b4a23a5 solves the problem!

keul commented 4 years ago

@bielfrontera Great! We were planning a pull request for next few days but you has been too quick!

Thank you very much!