IMap.IsDirty

Syntax

IsDirty: Boolean;

Description

The IsDirty property determines whether map parameters have been changed. False - no changes, True - map parameters were altered.

Setting this property to False allows for further detection of changes.

Example

Executing the example requires a form with a button named Button1, the UiMap component named UiMap1 and the MapBox component. UiMap is a data source for MapBox.

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;

Map.IsDirty := False;

End Sub Button1OnClick;

After executing the example the territory info of the Regions layer is displayed for the map. The IsDirty property will be set to False to enable detection of the future map parameters changes.

See also:

IMap