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