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/