getStyleImage method

Future<StyleImageInfo?> getStyleImage(
  1. String imageId
)

Reads an image of the map's style.

Completes with no value when the style has no image named imageId.

See mln_map_get_style_image in the C API reference.

Implementation

Future<StyleImageInfo?> getStyleImage(String imageId) => _queryOptional(
  _resultStyleImageInfo,
  (arena, completion) => raw.mln_map_get_style_image(
    _handle.raw,
    nativeStringView(imageId, arena).value,
    completion,
    nativeDiagnostic,
  ),
);