skeate / Leaflet.timeline

Display arbitrary GeoJSON on a map with a timeline slider and play button
https://skeate.github.io/Leaflet.timeline
ISC License
386 stars 67 forks source link

How to remove timeline from existing timelineSliderControl #152

Open lymine1996 opened 4 years ago

lymine1996 commented 4 years ago

I'm trying to make the start/end of slider control responsive when switching layers. I know there is an addTimelines() function I can use to add a timeline to the control. But is there a function that can remove the timeline of a single layer from the existing timelineSliderControl? Or I have to reinitiate the slider control variable and readd each layer?