Back to Devexpress

BingMapDataProvider.Kind Property

windowsforms-devexpress-dot-xtramap-dot-bingmapdataprovider.md

latest4.4 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
[DefaultValue(BingMapKind.Hybrid)]
public BingMapKind Kind { get; set; }
vb
<DefaultValue(BingMapKind.Hybrid)>
Public Property Kind As BingMapKind

Property Value

TypeDefaultDescription
BingMapKindHybrid

A BingMapKind enumeration value.

|

Available values:

NameDescriptionImage
Road

The map shows road schemas.

|

| | Area |

The map shows images of the Earth’s surface.

|

| | Hybrid |

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

|

| | RoadLight |

The map shows a lighter version of road schemas.

|

| | RoadGray |

The map shows a grayscale version of road schemas.

|

| | RoadDark |

The map shows a dark version of road schemas.

|

|

Example

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

Important

On May 21, 2024, Microsoft announced that Bing Maps for Enterprise and its API will be discontinued. Azure Maps will be a single unified enterprise mapping platform available from Microsoft.

To obtain and display map data from Azure Maps, we implemented the following providers:

For information on how to migrate your app from Bing Maps to Azure Maps, see the following help topic: Migrate from Bing Maps to Azure Maps Providers.

If you already have a Bing Maps for Enterprise license, you can keep using the current API. You must transition to the new API by June 30, 2025 (for free/basic licenses) or June 30, 2028 (for enterprise licenses). New licenses will no longer be available after June 30, 2025. Bing Maps will not work with our map controls without a license after that date.

csharp
mapControl1.Layers.Add(new ImageLayer() {
    DataProvider = new BingMapDataProvider() {
        BingKey = "YOUR BING KEY",
        Kind = BingMapKind.Road
    }
});
vb
mapControl1.Layers.Add(New ImageLayer() With {
            .DataProvider = New BingMapDataProvider() With {
                .BingKey = "YOUR BING KEY",
                .Kind = BingMapKind.Road
            }
        })

See Also

Migrate from Bing Maps to Azure Maps Providers

BingMapDataProvider Class

BingMapDataProvider Members

DevExpress.XtraMap Namespace