Hello,
How can I rotate (i.e Heading) a moving icon (2D) loaded on the map?
Thanks.
Under visual variables:
https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-visualVariables-RotationVariable.html
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????
};
Set the rotation by attribute under the styling pane for the layer
https://doc.arcgis.com/en/arcgis-online/create-maps/use-style-options-mv.htm#ESRI_SECTION1_E59376F5024746ECB41FE7825F0CA1E7
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.