setViewportOptions method

Future<CommandCompletion> setViewportOptions(
  1. MapViewportOptions options
)

Sets how the map orients and constrains its view.

Settings that options doesn't set keep their current values.

See mln_map_set_viewport_options in the C API reference.

Implementation

Future<CommandCompletion> setViewportOptions(MapViewportOptions options) =>
    _command(
      (arena, completion) => raw.mln_map_set_viewport_options(
        _handle.raw,
        _writeMapViewportOptions(options, arena),
        completion,
        nativeDiagnostic,
      ),
    );