TerritoryInfo: IMapTerritoryInfo;
The TerritoryInfo property determines map territory info.
Executing the example requires a form with the Button1 button, the MapBox component and the UiMap component that is a data source for MapBox.
The example is executed on clicking the button.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Map: IMap;
TerritoryInfo: IMapTerritoryInfo;
MapView: IMapView;
Begin
Map := UiMap1.Map;
MapView := Map.View;
TerritoryInfo := New DxMapTerritoryInfo.Create;
TerritoryInfo.Layer := Map.Layers.FindByName("Regions");
MapView.TerritoryInfo := TerritoryInfo;
End Sub Button1OnClick;
After executing the example the territory info is created for the map (the Regions layer).
See also: