Version

Styling Shapes in Geographic Series

Purpose

This topic provides information on how to style shapes of geographic series in 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 control.

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

In this topic

This topic contains the following sections:

Introduction

In the UltraGeographicMap control, shapes are visual elements that represent polygons or polylines in a geographic context. These shapes are defined by a data column mapped to the ShapeMemberPath property of geographic series.

The following types of geographic series support shapes:

The following table summarized properties for styling shape elements in geographic series:

Property Description

Specifies a brush for rendering fill of shape elements.

Specifies a brush for rendering stroke of shape elements.

Specifies a style for rendering shape elements.

Code Example: Applying a Style to Shapes of Geographic Series

The following is a preview of the UltraGeographicMap with a style applied to shape elements of geographic series.

GeographicMap Styling Shapes in Geographic Series 1.png

In Visual Basic:

Dim style = New Style()
style.Fill = New SolidBrush(Color.FromArgb(68, 71, 72))
style.Stroke = New SolidBrush(Color.FromArgb(176, 183, 186))
style.StrokeThickness = 1

Dim geoSeries = New GeographicShapeSeries()
geoSeries.ShapeStyle = style
Me.GeoMap.Series.Add(geoSeries)

In C#:

var style = new Style();
style.Fill = new SolidBrush(Color.FromArgb(68, 71, 72));
style.Stroke = new SolidBrush(Color.FromArgb(176, 183, 186));
style.StrokeThickness = 1;

var geoSeries = new GeographicShapeSeries();
geoSeries.ShapeStyle = style;
this.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.