Rotate a map.

Use case
A user may wish to view the map in an orientation other than north-facing.
How to use the sample
Use the slider or pinch to rotate the map. If the map is not pointed north, the compass will display the current heading. Tap the compass to set the map’s heading to north.
How it works
- Create a
Mapobject with thearcGISStreetsbasemap style. - Create a
Viewpointobject with a center, a scale, and a desired starting rotation. - Create a
MapViewinstance with the map and viewpoint. - Update the viewpoint with a different rotation to change the rotation angle.
Relevant API
- ArcGIS.MapView
- ArcGISToolkit.Compass
Tags
rotate, rotation, toolkit, viewpoint