Heading, Pitch and Roll are used to describe the viewing direction in a 3D view. Sometimes referred to as Yaw, Heading defines the angle of the camera rotating around the Z-axis. Imagine yourself as the camera. In this case adjusting the heading would be equivalent to looking to the left or right. The valid range for heading is -180 to 180 which are equal looking south. A value of 0 is looking north.
Heading is the one viewing direction property that is also used in 2D view. In a 2D view Heading determines and will determine the rotation of the view.
{
//Get the camera for the view, adjust the heading and zoom to the new camera position.
camera = mapView.Camera;
camera.Heading = heading;
await mapView.ZoomToAsync(camera, TimeSpan.Zero);
//Or synchronously
mapView.ZoomTo(camera, TimeSpan.Zero);
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)