removeStyleLayer method
- String layerId
Removes a layer from the map's style.
See mln_map_remove_style_layer in the
C API reference.
Errors:
Status.notFoundwhen the style has no layer namedlayerId.Status.invalidStatewhile the style isn't loaded, asMapHandle.setStyleUrl()describes.
Implementation
Future<CommandCompletion> removeStyleLayer(String layerId) => _command(
(arena, completion) => raw.mln_map_remove_style_layer(
_handle.raw,
nativeStringView(layerId, arena).value,
completion,
nativeDiagnostic,
),
);