User Tools

Site Tools


samples:samples:locate

Table of Contents

Locate sample

Documentation | Samples | Locate

Summary

How to convert mouse coordinates to map coordinates and use them to locate a shape.

Description

This sample illustrates use of:

Name Description
TGIS_Viewer.LocateLocate a shape that is near _ptg, but is closer than _prec distance.
TGIS_Viewer.GetRetrieve the layer identified by a name.
TGIS_Viewer.ScreenToMapConverts point coordinates from screen related to map related.

Code

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

2022/10/06 08:53

Page Tools