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

Any way to do a timeline from a set of TileLayers? #62

Open boriskogan81 opened 7 years ago

boriskogan81 commented 7 years ago

I've got a RESTful API pushing .png-based TileLayers and associated metadata (datetime, lat/lon, etc.)

I'd like to create a time slider or animation to display them as per the user's inputs.

What is a good starting point?

skeate commented 7 years ago

My gut says this would be difficult. The Timeline layer is a subclass of L.GeoJSON.

That said, maybe it makes sense to generalize L.Timeline to just be a FeatureGroup so you can use arbitrary layers, and add a L.GeoJSONTimeline that is GeoJSON-specific.