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

Image Tile Providers

  • 2 minutes to read

A MapControl uses image tile data providers to obtain data from imagery services. To use one of them, use the ImageLayer.DataProvider property.

The Map control supports the following tile providers.

It is possible to create a custom image tile provider. For more information, refer to the Custom Image Data Provider section of this document.

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 the class, refer to How to: Load Image Tiles from Bing Maps.

BingMaps

Note

Refer to How to: Get a Bing Maps Key if you run the application and see a window with the following error message: “The specified Bing Maps key is invalid. To create a developer account, refer to http://www.microsoft.com/maps/developers“.

OpenStreetMap Data Provider

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

For more information on how to use it, refer to How to: Load Image Tiles from OpenStreetMap

OpenStreetMap

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.

Custom Image Data Provider

If you need to use another online imagery service, or to load image tiles from an intranet server, you can implement a custom data provider. To do this, create a MapDataProviderBase class descendant and define a custom image tile source for it. This image tile source should be derived from MapTileSourceBase and provide a way to retrieve image tiles.

For more information on how to implement a custom map provider, see the How to: Load Image Tiles from a Local Directory example.

See Also