MapControl.ZoomToFitLayerItems(Boolean) Method
In This Article
Zooms the map to fit items that all map layers contain.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v24.2.dll
NuGet Package: DevExpress.Win.Map
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
round |
Boolean | Specifies whether to round the zoom level value. |
#Remarks
The following code zooms a map so that it displays all items that are contained in map layers:
using DevExpress.XtraMap;
private void OnVectorLayerDataLoaded(object sender, DataLoadedEventArgs e) {
mapControl1.ZoomToFitLayerItems(roundZoomLevel:true);
}
See Also