getProjectedBounds method

  1. @override
Bounds? getProjectedBounds(
  1. double? zoom
)
override

Returns the projection's bounds scaled and transformed for the provided zoom.

Implementation

@override
Bounds? getProjectedBounds(double? zoom) {
  if (infinite) {
    return null;
  }

  Bounds bounds = projection!.bounds!;
  double? scale = this.scale(zoom);

  final min = transformation.transform(bounds.min, scale);
  final max = transformation.transform(bounds.max, scale);
  return Bounds(min, max);
}