[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Collapse]Map Control
   [Expand]Getting Started
    Layers
   [Expand]Coordinate Systems
   [Collapse]Map Image Data
     Image Tile Providers
     Web Map Service Provider
     Georeferenced Image
   [Expand]GIS Data
   [Expand]Vector Data
   [Expand]Visual Elements
   [Expand]Examples
   [Expand]End-User Features
   [Expand]Product Information
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Image Tile Providers

A MapControl uses image tile data providers to provide map image layers with data from imagery services. Specify the ImageLayer.DataProvider property to add tiles from imagery services to the map.

The Map control supports the following tile providers:

Create your own data provider to use another online imagery service or to load image tiles from an intranet server.

Expanded Bing Maps Data Provider

This data provider loads image tiles from the MS Bing Maps.

Note

Read and accept the Microsoft® Bing™ Maps Platform APIs Terms Of Use before you use Bing Maps.

You should register a Bing Maps key to use the Bing Maps services. Refer to How to: Get a Bing Maps Key for more information.

Use the BingMapDataProvider class to work with Bing Maps:

Use the following API members to connect the Map Control to the Bing Maps service:

Member Description
ImageLayer Displays map images obtained from map image data providers.
ImageLayer.DataProvider Gets or sets the provider used to obtain images from an external source.
BingMapDataProvider The class that loads map images from the Bing Maps data provider.
BingMapDataProvider.BingKey Get or sets the key that is required to connect to the Bing Maps data provider.
BingMapDataProvider.Kind Gets or sets a value specifying the type of images to be displayed on a map.

The Map Control also supports the following Bing Maps data providers:

Expanded OpenStreetMap Data Provider

This data provider loads image tiles from the the OpenStreetMap service.

Note

Review the Copyright and License and Tile usage policy pages before using map images in the OpenStreetMap format.

You should provide the UserAgent parameter with a valid value to identify your application.

Use the OpenStreetMapDataProvider class to work with OpenStreetMap:

Use the following API members to connect the Map Control to the OpenStreetMap service:

Member Description
ImageLayer Displays map images obtained from map image data providers.
ImageLayer.DataProvider Gets or sets the provider used to obtain images from an external source.
OpenStreetMapDataProvider The class that loads map images from a web resource that provides data in the OpenStreetMap format.
MapImageDataProviderBase.WebRequest Occurs when a Map control sends a request to an external web service.
OpenStreetMapDataProvider.TileUriTemplate Gets or sets a template that is used to obtain image tiles from the current OpenStreetMap provider.
MapWebRequestEventArgs.UserAgent Gets or sets the value of the user-agent HTTP header.

The Map Control also supports the following OpenStreetMap data providers:

Expanded Custom Image Data Provider

To develop a data provider, 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.

Example:

Expanded See Also

Is this topic helpful?​​​​​​​