Skip to main content
All docs
V24.1

DxMap.Provider Property

Specifies the name of the current map data provider.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

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

Property Value

Type Default Description
MapProvider Google

The provider name.

Available values:

Name Description
Bing

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.Bing DxMapApiKeys.Bing
MapProvider.Google DxMapApiKeys.Google
MapProvider.GoogleStatic DxMapApiKeys.GoogleStatic
<DxMap Provider="MapProvider.Bing" Zoom="14" Width="100%" Height="600px" >
    <DxMapApiKeys Bing="your_bing_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

On May 21, 2024, Microsoft announced that Bing Maps for Enterprise and its API will be discontinued. Azure Maps will be a single unified enterprise mapping platform available from Microsoft.

We are working on API compatible with Azure Maps and expect to ship it with our next major release (v24.2).

If you have an existing license to Bing Maps for Enterprise, you can continue using our existing API. You need to transition to new API until June 30, 2025 (free and basic license) or until June 30, 2028 (enterprise license).

The last date you can get a new license to Bing Maps for Enterprise is June 30, 2024. If you do not have an existing license after that date, you would not be able to use our map controls with Bing Maps or Azure Maps (until we release the new API). During that time, you can use other map providers supported by our controls, such as Google or GoogleStatic.

See Also