MarkerVisual: IVZMapChartMarkerVisual;
MarkerVisual: Prognoz.Platform.Interop.Visualizators.VZMapChartMarkerVisual;
The MarkerVisual property returns visual view of geolocation marker.
The visual view includes the settings:
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.
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: