beginCommandGroup method

Future<CommandCompletion> beginCommandGroup()

Holds back the map's changes from rendering until MapHandle.endCommandGroup(), so they show in the same frame.

Groups nest, and the changes render when the outermost group ends.

See mln_map_begin_command_group in the C API reference.

Implementation

Future<CommandCompletion> beginCommandGroup() => _command(
  (arena, completion) => raw.mln_map_begin_command_group(
    _handle.raw,
    completion,
    nativeDiagnostic,
  ),
);