AnsweredAssumed Answered

How to animate symbols (PictureMarkerSymbol in my example) using css.

Question asked by deleted-user-OOe4JK-9Abnm on May 15, 2018
Latest reply on May 30, 2018 by deleted-user-OOe4JK-9Abnm


I need to make some animations on PictureMakerSymbol which is SVG-image. But I can not find any way to add css-class to the symbol. I use 4.7 api version. I expected that it would be a parameter in the symbol definition like "className". In addition to this I build a React solution and it is not so trivial to get access to the dom-node of the symbol. I found very little info about animations for js-api. I think animations is one of the key functionality which make maps more productive and fun to use.  I would appreciate any answer around this theme. Thank you in advance.


var symbol = new PictureMarkerSymbol({
url: image,
className: 'myStyle'