CalculateZoomToFitOnLocationPackageExtension extension

on

Methods

calculateZoomToFit(Iterable<TLocationComponents> locations, {double factor = 1.0, double minZoom = 10.0, double maxZoom = 20.0}) double

Available on LocationUtils, provided by the CalculateZoomToFitOnLocationPackageExtension extension

Calculates the zoom level to fit all the locations on a map. The factor is a multiplier to adjust the zoom level. The minZoom and maxZoom are the minimum and maximum zoom levels to clamp the result.