setBounds method
- CameraBoundsOptions options
Sets the camera bounds options of the map. The map will retain its current values for any
details not passed via the camera bounds options arguments.
When camera bounds options are set, the camera center is constrained by these bounds, as well as the minimum
zoom level of the camera, to prevent out of bounds areas to be visible.
Note that tilting or rotating the map, or setting stricter minimum and maximum zoom within options may still cause some out of bounds areas to become visible.
Implementation
Future<void> setBounds(CameraBoundsOptions options) =>
_cameraManager.setBounds(options);