Skip to main content
All docs
V24.1

DxMapApiKeys.GoogleStatic Property

Specifies a key for the GoogleStatic map data provider.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

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

<DxMap Zoom="14" Provider="MapProvider.GoogleStatic" Width="100%" Height="600px" ControlsVisible="true" >
    <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