removeStyleSource method
- String sourceId
Removes a source from the map's style.
See mln_map_remove_style_source in the
C API reference.
Errors:
Status.notFoundwhen the style has no source namedsourceId.Status.invalidStatewhen a layer still uses the source, or while the style isn't loaded, asMapHandle.setStyleUrl()describes.
Implementation
Future<CommandCompletion> removeStyleSource(String sourceId) => _command(
(arena, completion) => raw.mln_map_remove_style_source(
_handle.raw,
nativeStringView(sourceId, arena).value,
completion,
nativeDiagnostic,
),
);