Select to view content in your preferred language

2d object heading

458
3
01-12-2023 05:53 AM
Labels (1)
NorbertByiringiro
New Contributor II

Hello, 

How can I rotate (i.e Heading) a  moving icon (2D) loaded on the map?

Thanks.

0 Kudos
3 Replies
RussRoberts
Esri Notable Contributor
0 Kudos
NorbertByiringiro
New Contributor II

Hello Russell, 

thank you for the feedback, I am actually using arcgis api for javascript, I am wondering if there is a property on which I can assign the rotation on a 2D symbol marker, for example on a 3d type  you can assign heading to a a certain angle.

let symbol = {

type: "simple-marker",

style: "triangle",

color: "blue",

size: "8px"

outline: {

color:"red",

width: 3 

      }

      rotation/angle/heading: 90  // Does this kind of property exist for 2D symbol????

};

0 Kudos
RussRoberts
Esri Notable Contributor
0 Kudos