Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxMap.GoogleMapId Property

Specifies the map ID for Google and GoogleStatic providers.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue("")]
[Parameter]
public string GoogleMapId { get; set; }

#Property Value

Type Default Description
String String.Empty

A string that identifies the Google Map.

#Remarks

Specify the GoogleMapId property to apply a specific predefined map style or feature. This property is in effect for Google and GoogleStatic map providers.

razor
<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 more information: Migrate to advanced markers.

See Also