centerZoomFitBounds abstract method

CenterZoom centerZoomFitBounds(
  1. LatLngBounds bounds, {
  2. FitBoundsOptions? options,
})

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

CenterZoom centerZoomFitBounds(
  LatLngBounds bounds, {
  FitBoundsOptions? options,
});