Skip to main content
All docs
V24.1

DxMapApiKeys.Google Property

Specifies a key for the Google map data provider.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.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.

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