Documentation | Samples | Multiselect
Multiselect Sample — Demonstrates multiple feature selection with different selection modes and displaying selected feature attributes in a list and attributes panel.
What the sample shows:
This sample illustrates use of:
| Name | Description |
|---|---|
| TGIS_Viewer.Items | All layers. |
| TGIS_Viewer.ScreenToMap | Converts point coordinates from screen coordinates to map coordinates. |
| TGIS_Viewer.Locate | Locates the shape nearest to _ptg that is within _prec. |
| TGIS_Shape.MakeEditable | Make the shape editable by materializing mutable shape data when necessary. |
| TGIS_Shape.IsSelected | Shape is selected in the layer. |
| TGIS_LayerVector.FindFirst | Initiates iteration by finding the first shape in the layer and prepares cursor state for subsequent FindNext calls. |
| TGIS_LayerVector.FindNext | Retrieves the next shape from the active FindFirst query cursor and continues iteration over shapes matching the original criteria. |
| TGIS_LayerVector.DeselectAll | Clears the selection state of all shapes in the layer. |
This sample is available on the following platforms (click to view the source code on GitHub):