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

BingMapDataProvider.Kind Property

Gets or sets a value specifying the type of images to be displayed on a map.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v21.1.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Map

Declaration

[DefaultValue(BingMapKind.Hybrid)]
public BingMapKind Kind { get; set; }

Property Value

Type Default Description
BingMapKind **Hybrid**

A BingMapKind enumeration value.

Available values:

Name Description Image
Road

The map shows road schemas.

BingMaps Kind - Road

Area

The map shows images of the Earth’s surface.

BingMaps Kind - Area

Hybrid

The map shows a combination of Earth images and road schemas.

BingMaps Kind - Hybrid

RoadLight

The map shows a lighter version of road schemas.

BingMaps Kind - RoadLight

RoadGray

The map shows a grayscale version of road schemas.

BingMaps Kind - RoadGray

RoadDark

The map shows a dark version of road schemas.

BingMaps Kind - RoadDark

Example

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.

View Example

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