Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BingMapKind Enum

Lists the values used to specify the kind of maps to be obtained from the BingMapDataProvider.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v24.2.dll

NuGet Package: DevExpress.Wpf.Map

#Declaration

public enum BingMapKind

#Members

Name Description Image
Road

The map shows road schemas.

BingMaps Kind - Road

Area

The map shows photo 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

#Related API Members

The following properties accept/return BingMapKind values:

#Remarks

The following code renders the Traffic Flow layer of Bing Maps. Note if the BingMapDataProvider.Kind property is set to BingMapKind.Hybrid, the map is displayed with labels regardless of the display layer type.

<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:MapExample"
        xmlns:dxm="http://schemas.devexpress.com/winfx/2008/xaml/map" x:Class="MapExample.MainWindow"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <dxm:MapControl>
            <dxm:ImageLayer>
                <dxm:BingMapDataProvider BingKey="Insert your Bing key."
                                         Kind="RoadLight"
                                         TopLayer="TrafficFlow"/>
            </dxm:ImageLayer>
        </dxm:MapControl>
    </Grid>
</Window>
See Also