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

Is it possible to use with heatmap #178

Open 2803media opened 1 year ago

2803media commented 1 year ago

Do you think if it's possible to use this timeline with heat leaflet plugin (https://github.com/Leaflet/Leaflet.heat), I tried:


var timeline = L.timeline(datas, {
              getInterval: getInterval,
              return L.heatLayer(latlng, {maxZoom: valzoom});
              },

With out any success

skeate commented 7 months ago

hello after far too long.

Currently, these are two completely distinct layer types, so unfortunately, no. But I think this could lead to some really cool viz.

Maybe I can rework this as a kind of layer mixin, so it can work with any kind of layer. (Edit: this is also discussed in #62 -- oops)

At a glance, it seems like that's basically what https://github.com/socib/Leaflet.TimeDimension is doing

Sergiobop commented 5 months ago

hello after far too long.

Currently, these are two completely distinct layer types, so unfortunately, no. But I think this could lead to some really cool viz.

Maybe I can rework this as a kind of layer mixin, so it can work with any kind of layer. (Edit: this is also discussed in #62 -- oops)

At a glance, it seems like that's basically what https://github.com/socib/Leaflet.TimeDimension is doing

That would be super cool