Version

Displaying Geographic Imagery from Open Street Maps

Purpose

This topic provides information on how to display geographic imagery from Open Street Maps in the background content 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 information on how to add the UltraGeographicMap control to an application page.

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

This topic provides an overview of rendering geographic imagery in the background content of the UltraGeographicMap control.

In this topic

This topic contains the following sections:

Geographic Imagery from Open Street Maps

Overview

The Open Street Maps is a free geographic imagery mapping service created collaboratively by OpenStreetMap© contributors from around the world. It provides geographic imagery tiles of the world only in road map style without any configuration options. This geographic imagery service can be accessed directly on www.openstreetmap.org web site.

By the default, the UltraGeographicMap control displays geographic imagery from the Open Street Maps in the map background content using the OpenStreetMapImagery class. Therefore, there is no need to configure the control to display geographic imagery from the Open Street Maps.

Preview

The following image is a preview of the UltraGeographicMap control with geographic imagery tile from the Open Street Maps service.

GeographicMap Displaying Geographic Imagery from Open Street Maps 1.png

Example

This code example explicitly sets BackgroundContent of the UltraGeographicMap control to the OpenStreetMapImagery object which provides geographic imagery tile from the Open Street Maps.

In Visual Basic:

Dim geoMap As New UltraGeographicMap()
Me.geoMap.SetImagery(New OpenStreetMapImagery())

In C#:

UltraGeographicMap geoMap = new UltraGeographicMap();
this.GeoMap.SetImagery(New OpenStreetMapImagery());

Related Content

The following topics provide additional information related to this topic.

Topic Purpose

This topic provides information on how to bind geographic imagery in the UltraGeographicMap control.

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

This topic provides information on how to display geographic imagery from Bing Maps service in the UltraGeographicMap control.