User Tools

Site Tools


api:dk11:delphi:fmx.gisviewerwnd.tgis_viewerwnd.rotationangle

Table of Contents

TGIS_ViewerWnd.RotationAngle property

DK11 for Delphi | FMX.GisViewerWnd.TGIS_ViewerWnd.RotationAngle | Constructors | Methods | Properties | Events | Events

Standard FMX property. See platform documentation.

Available also on: Delphi VCL | .NET WinForms | .NET WPF | Java.

Syntax

// Delphi
published
  property RotationAngle;
// C++ Builder
// there is no real methods entry for dummy propery  in C++ header
published:
  __property  RotationAngle = {};

Value

Type

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. Suppose we have a GIS object of TGIS_ViewerWnd class.

// 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:09