centerZoomFitBounds abstract method
- @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.')
- LatLngBounds bounds, {
- 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)),
});