User Tools

Site Tools


samples:samples:viewerlite

Table of Contents

ViewerLite sample

Documentation | Samples | ViewerLite

Summary

How to create a very simple viewer. This sample is also available for FMX.Mobile and can be compiled for iOS and Android apps.

Description

See also Viewer sample.

This sample illustrates use of:

Name Description
TGIS_Viewer.OpenOpen project.
TGIS_Viewer.CloseClose a project.
TGIS_ViewerWnd.ModeMode of reaction to mouse events.
TGIS_Viewer.FullExtentCalculate the screen origin, zoom, and viewport to place the whole map in the window.
TGIS_Viewer.IsEmptyTrue, if Viewer is empty (no layers).
TGIS_Viewer.ItemsAll layers.
TGIS_Viewer.CSCoordinate System assigned to the viewer.
TGIS_Viewer.LocateLocate a shape that is near _ptg, but is closer than _prec distance.
TGIS_Viewer.ScreenToMapConverts point coordinates from screen related to map related.
TGIS_ViewerWnd.HiResHiRes support.
TGIS_LayerVector.DeselectAllClear selection of all shapes.
TGIS_Shape.IsSelectedIs shape selected.

Code

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

2017/10/20 18:21