Documentation | Samples | Multiselect
How to implement selection of several shapes at once.
This sample illustrates use of:
Name | Description |
---|---|
TGIS_Viewer.Items | All layers. |
TGIS_Viewer.ScreenToMap | Converts point coordinates from screen related to map related. |
TGIS_Viewer.Locate | Locate a shape that is near _ptg, but is closer than _prec distance. |
TGIS_Shape.MakeEditable | Add the shape to edited items list. |
TGIS_Shape.IsSelected | Is shape selected. |
TGIS_LayerVector.FindFirst | Finds the first shape in layer. |
TGIS_LayerVector.FindNext | Finds the next occurrence of an item defined in FindFirst. |
TGIS_LayerVector.DeselectAll | Clears selection of all shapes. |
This sample is available on following platforms (click to see source code):