MapControl.ZoomToFit(MapBounds, Double) Method
Zooms a map to fit the area containing items sent as a parameter.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Map, DevExpress.Wpf.Map
Declaration
Parameters
Name | Type | Description |
---|---|---|
bounds | MapBounds | A bounding box around map items. |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
paddingFactor | Double | 0.150000005960464 | A Double object that tunes the border size around visible map items. |
Remarks
The padding factor is applied to the larger dimension of the bounding box.
The following image shows an instance when the vertical dimension is larger than the horizontal. (“PF” means “Padding Factor” on images)
When the horizontal dimension is larger than the vertical, the zoom appears as follows.
Note that the padding factor is divided by two for each side of the region.