getProjectedBounds method
Rescales the bounds to a given zoom value.
Implementation
@override
Bounds? getProjectedBounds(double? zoom) {
if (infinite) {
return null;
}
Bounds bounds = projection.bounds!;
double? scale = this.scale(zoom);
Transformation transformation = _getTransformationByZoom(zoom);
var min = transformation.transform(bounds.min, scale);
var max = transformation.transform(bounds.max, scale);
return Bounds(min, max);
}