BingMapDataProvider.Kind Property
Gets or sets a value specifying the type of images to be displayed on a map.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v23.2.dll
NuGet Package: DevExpress.Wpf.Map
Declaration
Property Value
Type | Description |
---|---|
BingMapKind | A BingMapKind enumeration value. |
Available values:
Name | Description | Image |
---|---|---|
Road | The map shows road schemas. |
|
Area | The map shows photo 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 web service 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.
<Window xmlns:dxm="http://schemas.devexpress.com/winfx/2008/xaml/map"
x:Class="Wpf_MapControl_Lesson1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<dxm:MapControl CenterPoint="45,18" ZoomLevel="4" >
<dxm:MapControl.MiniMap>
<dxm:MiniMap Alignment="TopRight">
<dxm:MiniMap.Behavior>
<dxm:FixedMiniMapBehavior CenterPoint="45, 18"/>
</dxm:MiniMap.Behavior>
<dxm:MiniMapImageTilesLayer>
<dxm:BingMapDataProvider BingKey="YOUR BING KEY"/>
</dxm:MiniMapImageTilesLayer>
</dxm:MiniMap>
</dxm:MapControl.MiniMap>
<dxm:ImageLayer>
<dxm:ImageLayer.DataProvider>
<dxm:BingMapDataProvider BingKey="YOUR BING KEY"/>
</dxm:ImageLayer.DataProvider>
</dxm:ImageLayer>
</dxm:MapControl>
</Grid>
</Window>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Kind property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.