How can I rotate a symbol in a custom workflow activity?
I have a custom workflow activity, where I try to move and rotate a graphic that I added earlier to a graphics layer.
graphic.geometry = new Point(newPoint);
const symbol = graphic.symbol as MarkerSymbol;
symbol.angle = newAngle;Setting the geometry works, but rotating the symbol does not. I can set an initial angle on the symbol when I create it, but I can't seem to change the value later.
0
-
Berend,
Is the value changing in the Console but not on the map or not at all? Just to confirm you are using JavaScript 4.x?
-Tom
0
Please sign in to leave a comment.
Comments
1 comment