centerZoomFitBounds abstract method

  1. @Deprecated('Prefer `CameraFit.bounds(bounds: bounds).fit(controller.camera)`. ' 'This method is replaced by applying a CameraFit to the MapCamera. ' 'This method is deprecated since v6.')
CenterZoom centerZoomFitBounds(
  1. LatLngBounds bounds, {
  2. FitBoundsOptions options = const FitBoundsOptions(padding: EdgeInsets.all(12)),
})

Calculates the appropriate center and zoom level for the map to perfectly fit bounds, with additional configurable options

Does not move/zoom the map: see fitBounds.

Implementation

@Deprecated(
  'Prefer `CameraFit.bounds(bounds: bounds).fit(controller.camera)`. '
  'This method is replaced by applying a CameraFit to the MapCamera. '
  'This method is deprecated since v6.',
)
CenterZoom centerZoomFitBounds(
  LatLngBounds bounds, {
  FitBoundsOptions options =
      const FitBoundsOptions(padding: EdgeInsets.all(12)),
});