Update the orientation of a graphic using scene property rotation expressions.
Use the sliders to adjust the heading and pitch properties for the graphic.
Simple renderers can dynamically update the positions of graphics using an expression. The expression relates a renderer property to one of the graphic's attribute keys.
- Create a new graphics overlay.
- Create a simple renderer and set its scene properties.
- Set the heading expression to [HEADING].
- Apply the renderer to the graphics overlay.
- Create a point graphic and add it to the overlay.
- To update the graphic's rotation, update the HEADING or PITCH property in the graphic's attributes.
- GraphicsOverlay
- SimpleRenderer
- SceneProperties
- SimpleRenderer.SceneProperties
- SceneProperties.HeadingExpression
- Graphic.Attributes
The sample shows an empty scene with a point graphic and an imagery basemap.
rotation, expression, heading, pitch, scene, 3D, symbology