getZoomScale method

double getZoomScale(
  1. double toZoom,
  2. double? fromZoom
)

Implementation

double getZoomScale(double toZoom, double? fromZoom) {
  var crs = options.crs;
  fromZoom = fromZoom ?? _zoom;
  return crs.scale(toZoom)! / crs.scale(fromZoom)!;
}