User Tools

Site Tools


api:dk11:delphi:gisinterfaces.igis_viewer.rotationangle

Table of Contents

IGIS_Viewer.RotationAngle property

DK11 for Delphi | GisInterfaces.IGIS_Viewer.RotationAngle | Methods | Properties

Angle of viewer rotation in radians.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  property RotationAngle : Double read write;
// C++ Builder
public:
  __property double RotationAngle = {read, write};

Value

Type
Double

Remarks

If a map is rotated, remember that rotation is treated as projection, so coordinates are transformable. If map will be rotated, the using RestrictedDrag is not recommended.
See also RotationPoint and TGIS_Layer.Unproject.

Example

This is a simple code how to rotate a map.

// Delphi
<code delphi>
procedure MyForm.GIS_SpinEdit1Change(Sender: TObject);
begin
  // calculate the angle for set value
  GIS.RotationAngle := DegToRad( GIS_SpinEdit1.Value ) ;
  GIS.Update ;
end ;
2019/02/08 01:13