moveStyleLayer method
Moves a layer of the map's style below the layer named beforeLayerId, or
above every layer when beforeLayerId is empty.
See mln_map_move_style_layer in the
C API reference.
Errors:
Status.notFoundwhen the style has no layer namedlayerIdorbeforeLayerId.Status.invalidStatewhile the style isn't loaded, asMapHandle.setStyleUrl()describes.
Implementation
Future<CommandCompletion> moveStyleLayer(
String layerId, {
String? beforeLayerId,
}) => _command(
(arena, completion) => raw.mln_map_move_style_layer(
_handle.raw,
nativeStringView(layerId, arena).value,
beforeLayerId == null
? arena<raw.mln_buffer_view>().ref
: nativeStringView(beforeLayerId, arena).value,
completion,
nativeDiagnostic,
),
);