IEaxMapScale.MapScale

Syntax

MapScale: IMapColorScale;

Description

The MapScale property sets custom parameters of color scale for express report maps. It is required specify the IMapScale.Count and IMapScale.Value properties when using this property. Auto calculable scale is not used when parameters are configured with that property (IMapScale.AutoCalculable is set to False).

Example

This example requires an Analyzer of the IEaxAnalyzer type.

Sub UserProc;

Var

i: integer;

EaxMap: IEaxMap;

EaxScale: IEaxMapScale;

Scale: IMapColorScale;

Begin

EaxMap := Analyzer.Map;

EaxScale := EaxMap.Scale;

Scale := EaxScale.MapScale;

Scale.Count := 7;

For i := 0 To Scale.Count - 1 Do

Scale.Value(i) := (i + 1) * 3000;

Scale.Color(i, MapScaleSettingImpact.Less) := New GxColor.CreateRGB(120, 100 + (i*15), 225);

Scale.Color(i, MapScaleSettingImpact.Exact) := New GxColor.CreateRGB(170, 100 + (i*15), 225);

Scale.Color(i, MapScaleSettingImpact.Greater) := New GxColor.CreateRGB(220, 100 + (i*15), 225);

End For;

End Sub UserProc;

After executing the example custom settings are set for the map color scale.

See also:

IEaxMapScale