IMapTerritoryInfo.DisplayVisibleOnly

Syntax

DisplayVisibleOnly: Boolean;

Description

The DisplayVisibleOnly property determines the display order of territory info elements.

Comments

If the value is True, only the visible at the moment map territories are displayed, if the value is False, all the elements are displayed.

Example

Executing the example requires a form with a button named Button1, the UiMap component named UiMap1 and the MapBox component. The map must be connected to the UiMap1 component.

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

Var

Map: IMap;

TerrI: IMapTerritoryInfo;

S: Boolean;

Begin

Map := UiMap1.Map;

TerrI := New DxMapTerritoryInfo.Create;

Map.View.TerritoryInfo := TerrI;

TerrI.Layer := Map.Layers.FindByName("Regions");

S := TerrI.DisplayVisibleOnly;

End Sub Button1OnClick;

After executing the example the "S" variable stores the value that determines the info elements display order.

See also:

IMapTerritoryInfo