Skip to main content
You are viewing help content for pre-release software. This document and the features it describes are subject to change.
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

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>

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

See Also