Skip to main content
A newer version of this page is available. .

Map Image Data

  • 2 minutes to read

This document describes the types of predefined map image data providers supported by the Map control and details information on how to use them.

Map control uses the ImageTilesLayer to display image tiles from one of the imagery services. To do this, assign one of the following data providers to the ImageTilesLayer.DataProvider property.

Currently, the following map images data provider types are supported.

Bing Maps Data Provider

This data provider loads image tiles from the MS Bing Maps imagery service. To work with this provider, use the BingMapDataProvider class.

For information on how to use it, refer to How to: Use the BingMapDataProvider.

Note

If you run the application and see a window with the following error message: “Access was denied. You may have entered your credentials incorrectly, or you might not have access to the requested resource or operation.”, refer to the following tutorial: How to: Get a Bing Maps Key.

The following image shows the map control connected to the MS Bing Maps provider.

BingMapsImageTilesProvider

OpenStreetMap Data Provider

This data provider loads data from the OpenStreetMap service. To work with this provider, use the OpenStreetMapDataProvider class.

For more information how to use it, refer to How to: Use the OpenStreetMapDataProvider

Note

Before using map images in the OpenStreetMap format, please review the Copyright and License and Tile usage policy pages.

To control which web resource should be used in your application as an OpenStreetMap data provider, you should assign specific values for the OpenStreetMapDataProvider.TileUriTemplate property. Note that by default, this property is set to obtain data from the OpenStreetMap official web service.

The following image shows the map control connected to the OpenStreetMap provider.

OpenStreetMapDataProvider

See Also