Skip to content

Files

Latest commit

dbdc445 · May 7, 2020

History

History
29 lines (17 loc) · 461 Bytes

File metadata and controls

29 lines (17 loc) · 461 Bytes

Map rotation

Rotate a map.

Image of map rotation

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 to rotate the map.

How it works

  1. Instantiate an Map object.
  2. Set the map in the MapView object.
  3. Use SetViewpointRotationAsync to indicate the rotation angle.

Relevant API

  • Map
  • Compass
  • MapView

Tags

rotate, rotation, viewpoint