IMapImageVisual.StartAngle

Syntax

StartAngle: Double;

Description

The StartAngle property returns indicator rotation angle.

Example

Executing the example requires that the repository contains a regular report with the Report identifier, the report first sheet must contain only the map with the icon indicator on the Regions layer.

Sub Main;

Var

Metabase: IMetabase;

MetabaseObject: IMetabaseObject;

Report: IPrxReport;

Table: IPrxTable;

Obj: ITabObjects;

Layer: IMapLayer;

Map: IMap;

ImageVisual: IMapImageVisual;

Begin

Metabase := MetabaseClass.Active;

MetabaseObject := Metabase.ItemById("Report").Edit;

Report := MetabaseObject As IPrxReport;

Table := Report.Sheets.Item(0) As IPrxTable;

Obj := Table.TabSheet.Objects;

Map := Obj.Item(0).Extension As IMap; // map on report sheet

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

ImageVisual := Layer.Visuals.Item(0) As IMapImageVisual; // indicator

ImageVisual.StartAngle := 50;

Report.MetabaseObject.Save;

End Sub Main;

After executing the example the initial rotation angle of the icon indicator is determined.

See also:

IMapImageVisual