IMapTopobaseShape.Id

Syntax

Id: Integer;

Description

The Id property determines an area identifier.

Example

Executing the example requires a form with the Button1 button, the MapBox and UiMap components with a loaded map.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

M: IMap;

Layer: IMapLayer;

Shape: IMapTopobaseShape;

s: Integer;

Begin

M := UiMap1.Map;

Layer := M.Layers.FindByName("Regions");

Shape := Layer.Shapes.Item(0);

s := Shape.Id;

End Sub Button1OnClick;

After executing the example on clicking the button to the s variable the identifier of the first area is saved.

See also:

IMapTopobaseShape