User Tools

Site Tools


samples:samples:multiselect

Table of Contents

Multiselect sample

Documentation | Samples | Multiselect

Summary

How to implement selection of several shapes at once.

Description

This sample illustrates use of:

Name Description
TGIS_Viewer.ItemsAll layers.
TGIS_Viewer.ScreenToMapConverts point coordinates from screen related to map related.
TGIS_Viewer.LocateLocate a shape that is near _ptg, but is closer than _prec distance.
TGIS_Shape.MakeEditableAdd the shape to edited items list.
TGIS_Shape.IsSelectedIs shape selected.
TGIS_LayerVector.FindFirstFind first occurrence of an item which meets extent and query.
TGIS_LayerVector.FindNextFind next occurrence of item defined in FindFirst.
TGIS_LayerVector.DeselectAllClear selection of all shapes.

Code

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

2017/12/05 09:21