Skip to content

Commit

Permalink
Set default CameraFit maxZoom values to infinity
Browse files Browse the repository at this point in the history
The other parameters for CameraFit all have default values which will
not cause changes to the calculated CameraFit (i.e. padding is zero,
forceIntegerZoomLevel is false). Setting maxZoom to infinity makes it
consistent with the other parameters in that it will not affect the
calculated CameraFit.
  • Loading branch information
rorystephenson committed Jul 6, 2023
1 parent 150213e commit 278bd42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/map/camera/camera_fit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class FitBounds extends CameraFit {
const FitBounds._({
required this.bounds,
this.padding = EdgeInsets.zero,
this.maxZoom = 18,
this.maxZoom = double.infinity,
this.forceIntegerZoomLevel = false,
});

Expand Down Expand Up @@ -181,7 +181,7 @@ class FitInsideBounds extends CameraFit {
const FitInsideBounds._({
required this.bounds,
this.padding = EdgeInsets.zero,
this.maxZoom = 18,
this.maxZoom = double.infinity,
this.forceIntegerZoomLevel = false,
});

Expand Down Expand Up @@ -373,7 +373,7 @@ class FitCoordinates extends CameraFit {
const FitCoordinates._({
required this.coordinates,
this.padding = EdgeInsets.zero,
this.maxZoom = 18,
this.maxZoom = double.infinity,
this.forceIntegerZoomLevel = false,
});

Expand Down

0 comments on commit 278bd42

Please sign in to comment.