Animated PictureMarkerSymbol

1587
1
Jump to solution
04-05-2019 05:08 AM
RomanKönig
New Contributor III

In JS API 4.9 there were two ways af using animated marker symbols:

- using Animated GIFs as a PictureMarkerSymbol

- using a css definition on the svg of a SimpleMarkerSymbol

In 4.11 both of these are no longer available. 

Is there an easy possibility to have an animated marker symbol in the current api version without having to e.g. change the symbol itself using timeouts/intervals? 

0 Kudos
1 Solution

Accepted Solutions
BjornSvensson
Esri Regular Contributor

No, for 4.11, there is no "easy" solution for animated graphics. It is something we're working on to bring back to the API.

Meanwhile, you could use a custom WebGL Layer - see this sample with a pulsating marker: https://developers.arcgis.com/javascript/latest/sample-code/custom-gl-visuals/index.html 

View solution in original post

1 Reply
BjornSvensson
Esri Regular Contributor

No, for 4.11, there is no "easy" solution for animated graphics. It is something we're working on to bring back to the API.

Meanwhile, you could use a custom WebGL Layer - see this sample with a pulsating marker: https://developers.arcgis.com/javascript/latest/sample-code/custom-gl-visuals/index.html