socib / Leaflet.TimeDimension

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

Fix issue with entire GeoJSON being displayed at last feature time #209

Closed sdhiscocks closed 2 years ago

sdhiscocks commented 3 years ago

When a last feature time is equal to the current min_time, the current logic leaves min_index set to null. This then sets the min_index to 0, and such the entire layer is erroneously displayed.

This change simply changes to check the feature time is greater than or equal to to the min time.

bielfrontera commented 2 years ago

Thanks @sdhiscocks! :100: