maxBounds property

LatLngBounds? maxBounds
final

When this option is set, the map restricts the view to the given geographical bounds, bouncing the user back if the user tries to pan outside the view.

Implementation

final LatLngBounds? maxBounds;