blazor-devexpress-dot-blazor-dot-dxmap-065a0bbd.md
Specifies the map ID for Google and GoogleStatic providers.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue("")]
[Parameter]
public string GoogleMapId { get; set; }
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A string that identifies the Google Map.
|
Specify the GoogleMapId property to apply a specific predefined map style or feature. This property is in effect for Google and GoogleStatic map providers.
<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>
Note
You need to specify the GoogleMapId property to use advanced markers on a map (DxMap.Provider is Google). Refer to the following article for additional information: Migrate to advanced markers.
See Also