setBounds method
- BoundOptions options
Limits the camera's center to an area, and its zoom and pitch to ranges.
Limits that options doesn't set keep their current values. When the
camera is outside the new limits, it moves inside them.
See mln_map_set_bounds in the
C API reference.
Implementation
Future<CommandCompletion> setBounds(BoundOptions options) => _command(
(arena, completion) => raw.mln_map_set_bounds(
_handle.raw,
_writeBoundOptions(options, arena),
completion,
nativeDiagnostic,
),
);