Name: String;
The Name property determines an area name.
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: String;
Begin
M := UiMap1.Map;
Layer := M.Layers.FindByName("Regions");
Shape := Layer.Shapes.Item(0);
s := Shape.Name;
End Sub Button1OnClick;
After executing the example on clicking the button the first area name is saved to the s variable.
See also: