CalculateZoomToFitOnLocationPackageExtension extension
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 thelocationson a map. Thefactoris a multiplier to adjust the zoom level. TheminZoomandmaxZoomare the minimum and maximum zoom levels to clamp the result.