Version

Using Geographic Proportional Symbol Series

Purpose

This topic provides information on how to use the GeographicProportionalSymbolSeries element in the XamGeographicMap™ control.

Required background

The following topics are prerequisites to understanding this topic:

Topic Purpose

This topic provides information on how to add the XamGeographicMap control to an application page.

This topic provides information about layout of map elements in the XamGeographicMap control.

This topic provides resources about maps and geo-spatial related material as well as information about shape files. Use these resources to learn about and obtain shape files as well as tools for their editing before starting to bind geo-spatial data to the XamGeographicMap control.

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

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

Geographic Proportional Symbol Series

Overview

The GeographicProportionalSymbolSeries is a Scatter Series with data-driven symbol sizes. It implements GeographicProportionalSeries and has all the basic characteristics of the XamDataChart control’s BubbleSeries.

Preview

The following screenshot is a preview of the GeographicProportionalSymbolSeries series in the XamGeographicMap control displaying the locations of the most populated cites in the world. The RadiusScale of the symbols uses proportional radius scale in order to indicate the significance of these cities based on their population.

GeographicMap Using Geographic Proportional Symbol Series 1.png

Data Requirements

Similar to other types of geographic series in the XamGeographicMap control, the GeographicProportionalSymbolSeries possess an ItemsSource property for data binding. This property can be bound to an object that implements an IEnumerable interface.

Additionally, each item in the items source must have two numeric data columns for storing geographic location (longitude and latitude) and one numeric column for storing the symbol size. These data columns map to the LongitudeMemberPath, LatitudeMemberPath and RadiusMemberPath properties respectively.

Data Binding

The following table summarizes properties of the GeographicProportionalSymbolSeries used for data binding.

Property Name Property Type * Description*

IEnumerable

Gets or sets the source of items

String

Sets the symbol’s longitude coordinate

String

Sets the symbol’s latitude coordinate

String

Sets the symbol’s size

String

The name of the ItemsSource item’s property containing the numeric value to convert to a Brush using the FillScale

Example

In XAML:

<ig:XamGeographicMap x:Name="map">
 <ig:XamGeographicMap.Series>
 <ig:GeographicProportionalSymbolSeries ItemsSource="{StaticResource sampleData}"
 LatitudeMemberPath="LatColumnName"
 LongitudeMemberPath="LongColumnName"
 RadiusMemberPath="RadiusColumnName"/>
 </ig:XamGeographicMap.Series>
</ig:XamGeographicMap>

In Visual Basic:

Imports Infragistics.Controls.Charts
Imports Infragistics.Controls.Maps
Imports System.ComponentModel
' create and set data binding to the GeographicProportionalSymbolSeries
Dim geoSeries = New GeographicProportionalSymbolSeries()
geoSeries.ItemsSource = sampleData
geoSeries.LongitudeMemberPath = "LongColumnName"
geoSeries.LatitudeMemberPath = "LatColumnName"
geoSeries.RadiusMemberPath = "RadiusColumnName"
' add the GeographicProportionalSymbolSeries to the the XamGeographicMap
Me.GeoMap.Series.Add(geoSeries)

In C#:

using Infragistics.Controls.Charts;
using Infragistics.Controls.Maps;
using System.ComponentModel;
// create and set data binding to the GeographicProportionalSymbolSeries
var geoSeries = new GeographicProportionalSymbolSeries();
geoSeries.ItemsSource = sampleData;
geoSeries.LongitudeMemberPath = "LongColumnName";
geoSeries.LatitudeMemberPath = "LatColumnName";
geoSeries.RadiusMemberPath = "RadiusColumnName";
// add the GeographicProportionalSymbolSeries to the the XamGeographicMap
this.GeoMap.Series.Add(geoSeries);

Size Scale

Overview

The SizeScale determines the size of the symbols in the series. If the SizeScale value is not set, each of the symbol’s sizes is equal to the value of the RadiusMemberPath column. When setting the SizeScale the smallest symbol equals MinimumValue and the largest symbol equals MaximumValue, with all of the remaining symbols scaled proportionately within this range. The SizeScale can be either linear or logarithmic.

Example

The following screenshot demonstrates how the XamGeographicMap control’s GeographicProportionalSymbolSeries series renders as a result of the following SizeScale settings:

Property Value

5

70

GeographicMap Using Geographic Proportional Symbol Series 2.png

Following is the code that implements this example.

In XAML:

<ig:SizeScale x:Key="sizeScale"
 MinimumValue="5"
 MaximumValue="70"
 LogarithmBase="10"
 IsLogarithmic="/>
 <ig:GeographicProportionalSymbolSeries
       ...
 RadiusScale="{StaticResource sizeScale}" />

Fill Scale

Overview

A fill scale defines the color pattern within a single GeographicProportionalSymbolSeries. The GeographicProportionalSymbolSeries series’ FillScale property sets the symbols color with each color axis possessing its own collection of Brushes.

The GeographicProportionalSymbolSeries supports two fill scales:

Example

The following screenshot demonstrates how the XamGeographicMap control’s GeographicProportionalSymbolSeries series renders as a result of the following settings:

Property Value

CustomPaletteBrushScale

GeographicMap Using Geographic Proportional Symbol Series 3.png

Following is the code that implements this example.

In XAML:

<ig:CustomPaletteBrushScale x:Key="CustomPaletteBrushScale" >
 <ig:CustomPaletteBrushScale.Brushes>
 <SolidColorBrush Color="Red"/>
 <SolidColorBrush Color="Green"/>
 <SolidColorBrush Color="Blue"/>
 </ig:CustomPaletteBrushScale.Brushes/>
</ig:CustomPaletteBrushScale>
<ig:GeographicProportionalSymbolSeries
   ...
 FillScale="{StaticResource CustomPaletteBrushScale}" />

The following screenshot demonstrates how the XamGeographicMap control’s GeographicProportionalSymbolSeries series renders as a result of the following settings:

Property Value

ValueBrushScale

Population

GeographicMap Using Geographic Proportional Symbol Series 4.png

Following is the code that implements this example.

In XAML:

<ig:ValueBrushScale x:Key="ValueBrushScale"
 MinimumValue="1000"
 MaximumValue="25000000"
 IsLogarithmic="
 LogarithmBase="10">
 <ig:ValueBrushScale.Brushes>
 <SolidColorBrush Color="#FFC6EEFB" />
 <SolidColorBrush Color="#FF08C3FE" />
 <SolidColorBrush Color="#FF08A5FE" />
 <SolidColorBrush Color="#FF086AFE" />
 <SolidColorBrush Color="#FF084CFE" />
 </ig:ValueBrushScale.Brushes>
</ig:ValueBrushScale>
<ig:GeographicProportionalSymbolSeries
   ...
 FillScale="{StaticResource ValueBrushScale}"
 FillMemberPath="Population" />

Related Content

The following topics provide additional information related to this topic.

Topic Purpose

This topic provides information on how to add the XamGeographicMap™ control to an application page.

This topic provides information on how to use the element in the XamGeographicMap™ control.