Documentation | Samples | Locate
How to convert mouse coordinates to map coordinates and use them to locate a shape.
This sample illustrates use of:
Name | Description |
---|---|
TGIS_Viewer.Locate | Locate a shape that is near _ptg, but is closer than _prec distance. |
TGIS_Viewer.Get | Retrieve the layer identified by a name. |
TGIS_Viewer.ScreenToMap | Converts point coordinates from screen related to map related. |
This sample is available on following platforms (click to see source code):