Skip to main content
All docs
V24.2

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

DxMap.Provider Property

Specifies the name of the current map data provider.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(MapProvider.Google)]
[Parameter]
public MapProvider Provider { get; set; }

#Property Value

Type Default Description
MapProvider Google

The provider name.

Available values:

Name Description
Azure

The component displays Azure Maps. Available in v24.2.5+.

Bing

Obsolete. The component displays Bing Maps.

Google

The component displays Google Maps.

GoogleStatic

The component displays static Google Maps.

#Remarks

Use the Provider property to specify the map data provider used by the control.

Note that you must have the map provider’s API key to display maps in your application. Add the DxMapApiKeys object to the DxMap control and assign your key to the corresponding property.

Provider Key Property
MapProvider.Azure DxMapApiKeys.Azure
MapProvider.Google DxMapApiKeys.Google
MapProvider.GoogleStatic DxMapApiKeys.GoogleStatic
razor
<DxMap Provider="MapProvider.Azure"
       Zoom="14"
       Width="100%"
       Height="600px" >
    <DxMapApiKeys Azure="your_azure_key" />
    <DxMapCenter GeoPosition="40.7061, -73.9969" />
</DxMap>

Run Demo: Map Markers

For information on where to get a key, refer to the following articles:

Important

Microsoft deprecated Bing Maps for Enterprise and specified retirement dates. This change is a part of Microsoft’s initiative to unify its enterprise map product offerings: Bing Maps for Enterprise and Azure Maps.

Our Blazor Map component now supports Azure Maps. To display Azure Maps in your application, set the Provider property to Azure and assign the corresponding API key to the DxMapApiKeys.Azure property.

Refer to the following article for more information: Bing Maps for Enterprise Service Deprecation.

See Also