BingElevationDataProvider Class
Provides the capability to obtain elevation data from the Bing Maps web service.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Map, DevExpress.Wpf.Map
Declaration
public class BingElevationDataProvider :
BingMapDataProviderBase,
IMouseClickRequestSender
Example
This example demonstrates how to receive elevation data from the Bing Map Service.
To do this, request the required elevation information using the BingElevationDataProvider.RequestPointsElevations method.
<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:BingElevationDataWpf"
xmlns:dxm="http://schemas.devexpress.com/winfx/2008/xaml/map" x:Class="BingElevationDataWpf.MainWindow"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525" Loaded="OnLoaded">
<Grid>
<dxm:MapControl ZoomLevel="3" FontSize="7">
<dxm:MapControl.CenterPoint>
<dxm:GeoPoint Longitude="-100" Latitude="30"/>
</dxm:MapControl.CenterPoint>
<dxm:ImageLayer>
<dxm:BingMapDataProvider BingKey="INSERT_YOUR_BING_KEY"/>
</dxm:ImageLayer>
<dxm:InformationLayer>
<dxm:BingElevationDataProvider x:Name="provider" BingKey="INSERT_YOUR_BING_KEY"/>
</dxm:InformationLayer>
</dxm:MapControl>
</Grid>
</Window>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BingElevationDataProvider class.
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.