User Tools

Site Tools


samples:samples:rotation

Table of Contents

Rotation sample

Documentation | Samples | Rotation

Summary

How to show map rotated around selected point.

Description

This sample illustrates use of:

Name Description
TGIS_Viewer.OpenOpen project.
TGIS_Viewer.ScreenToMapConverts point coordinates from screen related to map related.
TGIS_Viewer.LocateLocate a shape that is near _ptg, but is closer than _prec distance.
TGIS_Viewer.RotationAngleAngle of viewer rotation in radians.
TGIS_Viewer.RotationPointPoint of viewer rotation in map units.
TGIS_Utils.GisCenterPointCalculates center point of given extent.

Code

This sample is available on following platforms (click to see source code):

2022/10/06 08:53

Page Tools