Skip to main content
All docs
V24.1

DxMapApiKeys Class

Allows you to specify keys for map data providers.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public class DxMapApiKeys :
    DxSettingsComponent<MapApiKeyModel>

Remarks

To display maps in your application, you must have the map provider’s API key. Use the Provider property to specify the current map data provider. Then, 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" ControlsVisible="true" >
    <DxMapApiKeys Bing="your_bing_key" />
    <DxMapCenter GeoPosition="40.7061, -73.9969" />
</DxMap>

Run Demo: Map Markers

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.

Inheritance

Object
ComponentBase
DxSettingsComponent<DevExpress.Blazor.ClientComponents.Internal.MapApiKeyModel>
DxMapApiKeys
See Also