Version

Hiding Geographic Imagery in Map Background Content

Purpose

This topic provides information on how to hide geographic imagery in the background content of the XamGeographicMap™ 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 XamGeographicMap control to an application page.

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

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

This topic provides information on how to use geographic series in the XamGeographicMap control.

In this topic

This topic contains the following sections:

Map Background Content

Overview

By the default, the XamGeographicMap control displays geographic imagery from the Open Street Maps in the map background content using the OpenStreetMapImagery class. However, there might be scenarios (for example, geographic shape series with detailed shape files of the world) where geo-spatial data from shape files provides enough geographic contexts and geographic imagery is not desired in the map background content.

Preview

The following image is a preview of the XamGeographicMap control with hidden geographic imagery in the map background content.

GeographicMap Hiding Geographic Imagery in Map Background Content 1.png

Example

This code example hides geographic imagery by setting the XamGeographicMap control’s BackgroundContent to a null value.

In XAML:

<ig:XamGeographicMap x:Name="GeoMap" BackgroundContent="{x:Null}">
    <ig:XamGeographicMap.Series>
        <!-- add geographic series here -->
    </ig:GeographicShapeSeries>
</ig:XamGeographicMap>

In Visual Basic:

Dim geoMap As New XamGeographicMap()
Me.geoMap.BackgroundContent = Nothing

In C#:

XamGeographicMap geoMap = new XamGeographicMap();
this.geoMap.BackgroundContent = null;

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 XamGeographicMap control.

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

This topic provides information on how to use geographic series in the XamGeographicMap control.