centerZoomFitBounds method
CenterZoom
centerZoomFitBounds(
- LatLngBounds bounds, {
- 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!);
}