Skip to main content
All docs
V25.1
  • DxMap.GoogleMapId Property

    Specifies the map ID for Google and GoogleStatic providers.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

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

    <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