IVZMapChartMarker.MarkerVisual

Fore syntax

MarkerVisual: IVZMapChartMarkerVisual;

Fore.NET syntax

MarkerVisual: Prognoz.Platform.Interop.Visualizators.VZMapChartMarkerVisual;

Description

The MarkerVisual property returns visual view of geolocation marker.

Comments

The visual view includes the settings:

Fore example

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

Ad 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.

Fore.NET example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Visualizators;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Express: IEaxAnalyzer;
    Map: IVZMapChart;
    MarkerVisual: IVZMapChartMarkerVisual;
    BackroundMapping, LatMapping, LongMapping: IVZDataSourceMapping;
Begin
    // Get repository
    MB := Params.Metabase;
    // 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
    System.Diagnostics.Debug.WriteLine
    ("Attribute identifier for setting up data mapping to marker fill color - " + BackroundMapping.AttributeId);
    System.Diagnostics.Debug.WriteLine
    ("Attribute identifier for setting up data mapping to marker latitude - " + LatMapping.AttributeId);
    System.Diagnostics.Debug.WriteLine
    ("Attribute identifier for setting up data mapping to marker longitude - " + LongMapping.AttributeId);
End Sub;

See also:

IVZMapChartMarker