DxMapApiKeys.Google Property
Specifies a key for the Google map data provider.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue("")]
[Parameter]
public string Google { 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 Google Maps in the DxMap control in your application.
When the Provider property is set to MapProvider.Google, assign your Google Maps API key value to the Google property. Additionally, you can use the GoogleMapId property to specify a map ID.
<DxMap Zoom="14"
Provider="MapProvider.Google"
ControlsVisible="true"
GoogleMapId="{my_google_map_id}">
<DxMapApiKeys Google="{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