centerZoomFitBounds method

  1. @override
CenterZoom centerZoomFitBounds(
  1. LatLngBounds bounds, {
  2. FitBoundsOptions? options = const FitBoundsOptions(padding: EdgeInsets.all(12)),
})
override

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

@override
CenterZoom centerZoomFitBounds(
  LatLngBounds bounds, {
  FitBoundsOptions? options =
      const FitBoundsOptions(padding: EdgeInsets.all(12)),
}) =>
    _state.centerZoomFitBounds(bounds, options!);