Skip to main content
A newer version of this page is available. .
All docs
V20.2

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);