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 thelocations
on a map. Thefactor
is a multiplier to adjust the zoom level. TheminZoom
andmaxZoom
are the minimum and maximum zoom levels to clamp the result.