All docs
V21.2
21.2
21.1
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Rotation

Users can rotate the map as shown in the image below. Hold down the right mouse button and move the mouse in a circle to rotate the map. Double-click the map with the right mouse button to reset the rotation angle:

Map Rotation

Use the MapControl.EnableRotation property to enable or disable map rotation:

mapControl1.EnableRotation = true;

You can use the following API members to rotate the map programmatically:

  • The Angle property specifies the rotation angle. The code below rotates the map 20 degrees:
mapControl1.Angle = 20;
  • The RotateAt(Double, CoordPoint) method rotates a map at the specified point. The code below rotates the map 90 degrees at the center point:
mapControl1.RotateAt(90, mapControl1.CenterPoint);