centerZoomFitBounds method

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

Calcs the new center and zoom for the map bounds. Optional constraints can be defined through the options parameter.

Implementation

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