getProjectedBounds method
Rescales the bounds to a given zoom value.
Implementation
@override
Bounds<double>? getProjectedBounds(double zoom) {
if (infinite) return null;
final b = projection.bounds!;
final s = scale(zoom);
final (minx, miny) = _transformation.transform(b.min.x, b.min.y, s);
final (maxx, maxy) = _transformation.transform(b.max.x, b.max.y, s);
return Bounds<double>(
Point<double>(minx, miny),
Point<double>(maxx, maxy),
);
}