Back to Devexpress

DxMapApiKeys Class

blazor-devexpress-dot-blazor-921d919a.md

latest3.0 KB
Original Source

DxMapApiKeys Class

Allows you to specify keys for map data providers.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
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.

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

Run Demo: Map - Overview

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 additional information: Bing Maps for Enterprise Service Deprecation.

Implements

IComponent

IHandleEvent

IHandleAfterRender

IDisposable

Inheritance

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

See Also

DxMapApiKeys Members

DevExpress.Blazor Namespace