keplergl / kepler.gl

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
http://kepler.gl
MIT License
10.27k stars 1.73k forks source link

Timeline Toggle stops animation #759

Closed sevkibaba closed 4 years ago

sevkibaba commented 4 years ago

Hello guys, this is a wonderful product, very good job!

I want to make animation going when the timeline is toggled. Right now we are using enlargeFilter action to toggle back the timeline.

When the timeline is closed the animation stops as default behavior, but we want it to keep playing the animation. Is there a way to do that?

Thanks in advance.

macrigiuseppe commented 4 years ago

Hey @sevkibaba, you can take advantage of Kepler.gl plugin features and override the toggle action behavior.

You can find some info here: https://github.com/keplergl/kepler.gl/blob/master/docs/api-reference/advanced-usages/reducer-plugin.md

We have an example available that takes advantage of the same feature and you can find it here: https://github.com/keplergl/kepler.gl/blob/master/examples/custom-reducer/src/store.js

sevkibaba commented 4 years ago

Thanks for the answer @macrigiuseppe. We are using version 0.2.4 hence I think this is not available in that version. I will try it after upgrading our Kepler.gl version.

Thanks again, cheers :)