Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request : Add Built-in Marker Transitions #2258

Closed
misterfresh opened this issue Mar 11, 2016 · 1 comment
Closed

Request : Add Built-in Marker Transitions #2258

misterfresh opened this issue Mar 11, 2016 · 1 comment

Comments

@misterfresh
Copy link

Feature Request:
In markers we should be able to set two properties in the point's geojson: nextPosition and timeToTransition :

  • nextPosition is a coordinates array
  • timeToTransition is a time in milliseconds
    And then when I do source.setData with a feature collection, it will transition the markers automagically.
    In this way I only have to do setData one time per second and not 30 times per second, and the update can be done in webgl and not js which I suppose would be faster
    Maybe add a third property like transitionStyle (for example 'ease-in' or 'linear').
    That would be a killer feature.
@lucaswoj
Copy link
Contributor

Thanks for the feature request @misterfresh!

In this way I only have to do setData one time per second and not 30 times per second, and the update can be done in webgl and not js which I suppose would be faster

This would not be possible without a significant refactoring of our codebase. We have decided to make setData the primitive for animation. There is an ongoing effort to make setData more efficient in #1391 and #1504.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants