AnsweredAssumed Answered

How to rotate renderer icon/graphic dynamically with the map rotation?

Question asked by paul.haakma on Oct 4, 2015
Latest reply on Dec 1, 2015 by paul.haakma

When setting a renderer on a feature layer, a PictureMarkerSymbol rotates with the map rotation.

 

There is an angle field on a PictureMarkerSymbol. If you set this then the icon/graphic will be displayed rotated on the map. I tried binding the angle property to the map.mapRotation property but the icon didn't rotate with the map.

 

Is there any way to alter the rotation of the graphic dynamically with the map? My intent is actually to keep the graphic unrotated on the screen regardless of the map rotation underneath it.

 

UniqueValueRenderer{

       attributeNames: ["Verified"]

        defaultSymbol: PictureMarkerSymbol { image: "image.png"; width: 40; height: 32; angle: (map.mapRotation * -1.00)}

         }

Outcomes