getProjectedBounds method
Rescales the bounds to a given zoom value.
Implementation
@override
Rect? getProjectedBounds(double zoom) {
if (infinite) return null;
final b = projection.bounds!;
final s = scale(zoom);
final (minx, miny) = _transformation.transform(b.min.dx, b.min.dy, s);
final (maxx, maxy) = _transformation.transform(b.max.dx, b.max.dy, s);
return Rect.fromPoints(
Offset(minx, miny),
Offset(maxx, maxy),
);
}