Version

Using Markers in Geographic Series

Purpose

This topic provides information on how to use markers in geographic series of the UltraGeographicMap™ control.

Required background

The following table lists the topics required as a prerequisite to understanding this topic.

Topic Purpose

This topic provides resources with information about maps, shape files, and geo-spatial related material. Use these resources to learn about and obtain geo-spatial shape files as well as tools for their editing.

This topic provides information on how to bind shape files with geo-spatial data to the UltraGeographicMap control.

This topic provides information on how to use the GeographicSymbolSeries element in the UltraGeographicMap control.

This topic provides information on how to use the GeographicShapeSeries element in the UltraGeographicMap control.

In this topic

This topic contains the following sections:

Displaying Basic Markers in Geographic Series

Overview

In the UltraGeographicMap control, markers are visual elements that display values of data items bound to geographic series in geographic locations of the map. Marker can be represented as labels, symbols or custom data templates.

The following types of geographic series support markers:

Property settings

The following table maps the desired configuration to property settings of geographic series.

In order to: Use this property: And set it to:

Display markers

Circle

Change markers’ brush

Infragistics.Win.DataVisualization.Brush

Change markers’ outline

Infragistics.Win.DataVisualization.Brush

Enable markers’ collision avoidance

Fade

Example

The screenshot below demonstrates how the UltraGeographicMap control looks as a result of the following settings:

Property Value

Circle

Blue

Black

None

GeographicMap Using Markers in Geographic Series 1.png

Code

The following code changes the appearance of markers in the GeographicSymbolSeries

In C#:

var geoSeries = new GeographicSymbolSeries();
geoSeries.DataSource = shapefileConverter;
geoSeries.MarkerBrush = new SolidBrush(Color.Blue);
geoSeries.MarkerOutline = new SolidBrush(Color.Black);
geoSeries.MarkerCollisionAvoidance = CollisionAvoidanceType.None;
geoSeries.LatitudeMemberPath = "Points[0][0].X";
geoSeries.LongitudeMemberPath = "Points[0][0].Y";
this.geoMap.Series.Add(geoSeries);

In VB:

Dim geoSeries = new GeographicSymbolSeries()
geoSeries.DataSource = shapefileConverter
geoSeries.MarkerBrush = new SolidBrush(Color.Blue)
geoSeries.MarkerOutline = new SolidBrush(Color.Black)
geoSeries.MarkerCollisionAvoidance = CollisionAvoidanceType.None
geoSeries.LatitudeMemberPath = "Points[0][0].X"
geoSeries.LongitudeMemberPath = "Points[0][0].Y"
Me.geoMap.Series.Add(geoSeries)

Related Content

The following topics provide additional information related to this topic.

Topic Purpose

This topic provides resources with information about maps, shape files, and geo-spatial related material. Use these resources to learn about and obtain geo-spatial shape files as well as tools for their editing.

This topic provides information on how to bind shape files with geo-spatial data to the UltraGeographicMap control.

This topic provides information about supported types of geographic series in the UltraGeographicMap control.