A newer version of this page is available. Switch to the current version.

BingMapDataProvider Class

The class that loads map images from the Bing Maps data provider.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v19.1.dll

Declaration

public class BingMapDataProvider :
    MapDataProviderBase,
    IBingMapKindProvider
Public Class BingMapDataProvider
    Inherits MapDataProviderBase
    Implements IBingMapKindProvider

Examples

This example demonstrates how to connect to the Bing Maps using the BingMapDataProvider object.

Note that if you run this sample as is, you will get a warning message saying that the specified Bing Maps key is invalid. To learn more about Bing Map keys, please refer to the How to: Get a Bing Maps Key tutorial.

mapControl1.Layers.Add(new ImageLayer() {
    DataProvider = new BingMapDataProvider() {
        BingKey = "YOUR BING KEY"
    }
});
See Also