Select to view content in your preferred language

Question regarding 3d symbol animation

389
1
01-10-2024 08:20 PM
VickyHuang
New Contributor

I've uploaded a  custom webstylesymbol to  arcgis online and try to animate symbol movement based on coordination and change symbol heading as symbol moving, however seems like my code not able to change the heading as the symbol moving. My code is given below:

https://jsfiddle.net/vkiii1018/8bhx7jmr/35/

Tags (3)
0 Kudos
1 Reply
GunnarStefánsson
Esri Contributor

Just like the graphic's geometry, you need to provide the graphic with a new symbol instance for it to update.

The symbol also does not have an angle property. To rotate the graphic you can adjust the ObjectSymbolLayer's heading, tilt and roll properties.

I've adjusted your sample to do this here: https://codepen.io/gstefansson/pen/ZEPxeNJ

0 Kudos