Select to view content in your preferred language

Animated Flow Lines with Vector Data

1118
4
Jump to solution
10-24-2023 01:43 PM
BlakeTerhune
MVP Regular Contributor

Is there a way to achieve an effect similar to the Animated Flow Renderer using polyline data instead of a magnitude/direction raster? I would like to use an attribute to determine magnitude with the direction of the line geometry.

I did some tinkering with the Animated Lines WebGL sample but the triangulation of the lines is giving odd behavior with my data; the lines don't seem to follow the correct path. I'm hoping there is something a little simpler. Even if it's just moving marker symbols along the path of the line features.

2 Solutions

Accepted Solutions
AnneFitz
Esri Regular Contributor

Hi Blake, this is not currently supported with vector data (outside of a custom layer/WebGL implementation), but we are working on it. Stay tuned! 

View solution in original post

0 Kudos
JonathanDawe3
Emerging Contributor

In some simple use cases you can try playing around with simply animating properties of the renderer. Check this example out: https://codepen.io/JDawe/pen/NWeRWGq

View solution in original post

4 Replies
AnneFitz
Esri Regular Contributor

Hi Blake, this is not currently supported with vector data (outside of a custom layer/WebGL implementation), but we are working on it. Stay tuned! 

0 Kudos
JonathanDawe3
Emerging Contributor

In some simple use cases you can try playing around with simply animating properties of the renderer. Check this example out: https://codepen.io/JDawe/pen/NWeRWGq

BlakeTerhune
MVP Regular Contributor

Yeah, this is pretty close! I haven't dived into the Esri Cartographic Information Model (CIMSymbol) yet. Thank you for this.

AnneFitz
Esri Regular Contributor

Woah, very cool @JonathanDawe3!

You could also try playing around with GIFs (animated CIMPictureMarkers) placed along a line - here's a (not very pretty) example: https://codepen.io/annefitz/pen/eYMRRVv?editors=1010

Using a primitiveOverride on the animatedSymbolProperties.duration property, you can tie the speed of the animation to an attribute value.