getProjectedBounds method

Bounds<num> getProjectedBounds(
  1. double zoom
)

Rescales the bounds to a given zoom value.

Implementation

Bounds getProjectedBounds(double zoom) {
  if (infinite) return null;

  var b = projection.bounds;
  var s = scale(zoom);
  var min = transformation.transform(b.min, s.toDouble());
  var max = transformation.transform(b.max, s.toDouble());
  return Bounds(min, max);
}