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

DxMapApiKeys.GoogleStatic Property

Specifies a key for the GoogleStatic map data provider.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue("")]
[Parameter]
public string GoogleStatic { get; set; }

#Property Value

Type Default Description
String String.Empty

The Google Maps API key.

#Remarks

You must have a Google Maps API key to display the Google Maps in the DxMap control in your application.

When the Provider property is set to MapProvider.GoogleStatic, assign your Google Maps API key value to the GoogleStatic property. Additionally, you can use the GoogleMapId property to specify a map ID.

razor
<DxMap Zoom="14"
       Provider="MapProvider.GoogleStatic"
       ControlsVisible="true"
       GoogleMapId="{my_google_map_id}">
    <DxMapApiKeys GoogleStatic="{my_google_api_key}" />
    <DxMapCenter GeoPosition="40.7061, -73.9969" />
</DxMap>

For information on where to get a Google Maps API key, refer to the following article: Use API Keys.

See Also