removeStyleImage method

Future<CommandCompletion> removeStyleImage(
  1. String imageId
)

Removes an image from the map's style.

See mln_map_remove_style_image in the C API reference.

Errors:

  • Status.notFound when the style has no image named imageId.
  • Status.invalidState while the style isn't loaded, as MapHandle.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,
  ),
);