wpf-devexpress-dot-xpf-dot-map-67dc39d5.md
Loads map images from the Azure Maps data provider.
Namespace : DevExpress.Xpf.Map
Assembly : DevExpress.Xpf.Map.v25.2.dll
NuGet Package : DevExpress.Wpf.Map
public class AzureMapDataProvider :
MapDataProviderBase,
IAzureTilesetProvider
Public Class AzureMapDataProvider
Inherits MapDataProviderBase
Implements IAzureTilesetProvider
Specify AzureKey to access data from Azure Maps. A key is obtained when you create an Azure Maps account.
When you connect a map layer to Azure Maps data provider, you can specify the following settings:
CultureNameGets or sets the Culture name used to obtain data from Azure GIS services.LocalizedViewSpecifies the map view for a certain country/region.TilesetSpecifies the tileset that the provider loads from the service.ProjectionGets a projection used by the Azure Maps data provider.
The following example connects a map control to Azure Maps and specifies map layers:
<dxm:MapControl>
<dxm:ImageLayer>
<dxm:AzureMapDataProvider Tileset="Imagery" AzureKey="your key"/>
</dxm:ImageLayer>
<dxm:ImageLayer>
<dxm:AzureMapDataProvider Tileset="BaseLabelsRoad" AzureKey="your key"/>
</dxm:ImageLayer>
</dxm:MapControl>
The following code snippets (auto-collected from DevExpress Examples) contain references to the AzureMapDataProvider 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.
wpf-map-process-search-with-a-custom-search-panel/CS/MapControl_SearchPanel/MainWindow.xaml#L29
<dxm:ImageLayer.DataProvider>
<dxm:AzureMapDataProvider AzureKey="{Binding Source={StaticResource azureKey}}"/>
</dxm:ImageLayer.DataProvider>
wpf-map-search-with-azure-map-search-service/CS/DXMapExample/MainWindow.xaml#L26
<dxm:ImageLayer>
<dxm:AzureMapDataProvider AzureKey="{Binding Source={StaticResource azureMapsKey}}" />
</dxm:ImageLayer>
Object DispatcherObject DependencyObject Freezable MapDependencyObject MapImageDataProviderBase DevExpress.Xpf.Map.MapTileDataProviderBase MapDataProviderBase AzureMapDataProvider
See Also