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.ControlsVisible Property

Specifies whether map UI controls are visible.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public bool ControlsVisible { get; set; }

#Property Value

Type Description
Boolean

true to display controls; otherwise, false.

#Remarks

Set the ControlsVisible property to true to display map navigation and type controls. Note that this property is not in effect for Google Static Maps images since they are not interactive.

razor
<DxMap Zoom="14"
       Provider="MapProvider.Azure"
       Width="450px"
       Height="400px"
       ControlsVisible="true" >
    <DxMapApiKeys Azure="@MapApiKeyProvider.GetAzureProviderKey()" />
    <DxMapCenter Latitude="40.7061" Longitude="-73.9969"/>
</DxMap>

<DxMap Zoom="14"
       Provider="MapProvider.Google"
       Width="450px"
       Height="400px"
       ControlsVisible="true" >
    <DxMapApiKeys Google="your_google_api_key" />
    <DxMapCenter Latitude="40.7061" Longitude="-73.9969"/>
</DxMap>

DxMap - Maps with Controls

Run Demo: Map Markers

See Also