Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Enhancement about ArcLayer point-to-point animation #2531
Update: Enhancement about ArcLayer animation, see #2531 (comment)
Original Post (problem deprecated):
As mentioned in the title, I want to draw an animation with ArcLayer. As iuntroduced by deck.gl website, the Arc Layer renders raised arcs joining pairs of source and target points, specified as latitude/longitude coordinates, all arcs will be rendered at the same time, so can I animate it from source to target with some time latency?
By looking through the docs, I couldn't find a way to do that, however I found some documents may be useful for me, such as Animation and attribute-manager ,but I couldn't find concrete example of these usage.
However, I found some similar issues, like "How to animate ArcLayer arcs individually?" #633 It seems the developer want to draw different arcs at different time, and your team gave him an approach to do it with
However, I found it can only change arcs suddenly like this, not the animation I want.
Any ideas on it? Thanks very much.
Thanks for Yaryna Serkez's work on animating arcs:
Though I need more time to understand the ideas of drawing animating arcs with help of colors and opactiy, I think the framework of this kind of AnimationArclayer is clear.
For normal ArcLayer, we can enhance it's interaction by providing a point-to-point (from source point to target point) animation.
And for deck.gl developers, we can provide the same API as Arclayer, except one more property called
The usage can be formatted like this:
The idea is pretty similar to the first approach, except we let Layer handle the drawing process by itself.
We should add a setInterval to the constructor, and provide a
Last, we get