DK for Delphi | FMX.GisViewerWnd.TGIS_ViewerWnd.RotationPoint | Constructors | Methods | Properties | Events | Events
Point of viewer rotation in map units.
Available also on: .NET WinForms | Java | ActiveX.
// Delphi public property RotationPoint : TGIS_Point read write;
// C++ Builder public: __property TGIS_Point* RotationPoint = {read, write};
Type |
---|
TGIS_Point |
See also RotationAngle.
This is a simple code how to set a rotation point. Suppose we have a GIS object of TGIS_ViewerWnd class.
procedure MyForm.GISMouseDown( Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer ) ; begin // if clicked, change a rotation point and move viewport GIS.RotationPoint := GIS.ScreenToMap( Point( X, Y ) ); if Autocenter then GIS.CenterViewport( GIS.ScreenToMap( Point( X, Y ) ) ); end ;