Back to Devexpress

DxMap.GoogleMapId Property

blazor-devexpress-dot-blazor-dot-dxmap-065a0bbd.md

latest1.8 KB
Original Source

DxMap.GoogleMapId Property

Specifies the map ID for Google and GoogleStatic providers.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDefaultDescription
StringString.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 additional information: Migrate to advanced markers.

See Also

DxMap Class

DxMap Members

DevExpress.Blazor Namespace