removeStyleImage method
- String imageId
Removes an image from the map's style.
See mln_map_remove_style_image in the
C API reference.
Errors:
Status.notFoundwhen the style has no image namedimageId.Status.invalidStatewhile the style isn't loaded, asMapHandle.setStyleUrl()describes.
Implementation
Future<CommandCompletion> removeStyleImage(String imageId) => _command(
(arena, completion) => raw.mln_map_remove_style_image(
_handle.raw,
nativeStringView(imageId, arena).value,
completion,
nativeDiagnostic,
),
);