IVZMapChartMarker.MarkerVisual

Syntax

MarkerVisual: IVZMapChartMarkerVisual;

Description

The MarkerVisual property returns visual view of geolocation marker.

Comments

The visual view includes the settings:

Example

Executing the example requires that the repository contains an express report with the EXPRESS identifier containing a map with geolocation markers.

Add links to the Express, Metabase, Visualizators system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Express: IEaxAnalyzer;
    Map: IVZMapChart;
    MarkerVisual: IVZMapChartMarkerVisual;
    BackroundMapping, LatMapping, LongMapping: IVZDataSourceMapping;
Begin
    // Get repository
    MB := MetabaseClass.Active;
    // Get express report
    Express := MB.ItemById("EXPRESS").Bind As IEaxAnalyzer;
    // Get map
    Map := Express.MapChart.MapChart;
    // Get visual view
    MarkerVisual := Map.Markers.Item(0).MarkerVisual;
    // Get settings of geolocation marker data mapping
    BackroundMapping := MarkerVisual.BackgroundMapping;
    LatMapping := MarkerVisual.LatitudeMapping;
    LongMapping := MarkerVisual.LongitudeMapping;
    // Output attribute identifiers to console window for setting up data mapping
    Debug.WriteLine
    ("Attribute identifier for setting up data mapping to marker fill color - " + BackroundMapping.AttributeId);
    Debug.WriteLine
    ("Attribute identifier for setting up data mapping to marker latitude - " + LatMapping.AttributeId);
    Debug.WriteLine
    ("Attribute identifier for setting up data mapping to marker longitude - " + LongMapping.AttributeId);
End Sub UserProc;

After executing the example the console window displays attribute identifiers for various mapping settings.

See also:

IVZMapChartMarker