Back to Devexpress

DxMap.Zoom Property

blazor-devexpress-dot-blazor-dot-dxmap-adf98870.md

latest1.6 KB
Original Source

DxMap.Zoom Property

Specifies the map zoom level.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(1)]
[Parameter]
public int Zoom { get; set; }

Property Value

TypeDefaultDescription
Int321

The zoom level.

|

Remarks

Use the Zoom property to specify the initial map zoom level. Note that the component can change the specified value if the AutoAdjust property is set to true (the default value).

razor
<DxMap Zoom="14"
       Provider="MapProvider.Azure"
       Width="100%"
       Height="600px"
       ControlsVisible="true" >
    <DxMapApiKeys Azure="@MapApiKeyProvider.GetAzureProviderKey()" />
    <DxMapCenter GeoPosition="40.7061, -73.9969" />
</DxMap>

Run Demo: Map - Overview

For additional information about available zoom levels, refer to the following articles:

See Also

DxMap Class

DxMap Members

DevExpress.Blazor Namespace