fitBounds abstract method

bool fitBounds(
  1. LatLngBounds bounds, {
  2. FitBoundsOptions? options,
})

Move and zoom the map to perfectly fit bounds, with additional configurable options

For information about return value meaning and emitted events, see move's documentation.

Implementation

bool fitBounds(LatLngBounds bounds, {FitBoundsOptions? options});