Skip to main content
A newer version of this page is available. .

MapControl.ZoomToFit Method

Name Parameters Description
ZoomToFit(IEnumerable<MapItem>, Boolean, Double) items, roundZoomLevel, paddingFactor Zooms the map based on a specified padding factor to allow the map viewport to display all items passed in parameters. Allows you to set whether the map should use a non-negative integer zoom level.
ZoomToFit(IEnumerable<MapItem>, Double) items, paddingFactor Zooms a map to fit the area containing items sent as a parameter.