getScaleZoom method

double getScaleZoom(
  1. double scale, [
  2. double? fromZoom
])

Returns the zoom level that the map would end up at, if it is at fromZoom level and everything is scaled by a factor of scale.

Inverse of `getZoomScale`.

Implementation

double getScaleZoom(double scale, [double? fromZoom]) {
  return crs.zoom(scale * crs.scale(fromZoom ?? _zoom)!);
}