setBounds

abstract fun setBounds(@NonNull options: CameraBoundsOptions): Expected<String, None>

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.

Return

A string describing an error if the operation was not successful, expected with `void` value otherwise.

Parameters

options

The `camera bounds options` to set.