Back to Devexpress

FixedMiniMapBehavior.ZoomLevel Property

windowsforms-devexpress-dot-xtramap-dot-fixedminimapbehavior-edc2e144.md

latest1.7 KB
Original Source

FixedMiniMapBehavior.ZoomLevel Property

Gets or sets the zoom level of a mini map.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
[DefaultValue(1)]
public double ZoomLevel { get; set; }
vb
<DefaultValue(1)>
Public Property ZoomLevel As Double

Property Value

TypeDefaultDescription
Double1

A double value, specifying the zoom level.

|

Example

To customize FixedMiniMapBehavior use the FixedMiniMapBehavior.CenterPoint and FixedMiniMapBehavior.ZoomLevel properties.

csharp
mapControl.MiniMap.Behavior = new FixedMiniMapBehavior() {
    CenterPoint = new GeoPoint(25,55),
    ZoomLevel = 4
};
vb
MapControl.MiniMap.Behavior = New FixedMiniMapBehavior() With {
    .CenterPoint = New GeoPoint(25, 55),
    .ZoomLevel = 5
}

See Also

FixedMiniMapBehavior Class

FixedMiniMapBehavior Members

DevExpress.XtraMap Namespace