getImageSourceCoordinates method

Future<List<LatLng>> getImageSourceCoordinates(
  1. String sourceId
)

Reads the corners of an image source's image, clockwise from the top left.

See mln_map_get_image_source_coordinates in the C API reference.

Errors:

  • Status.notFound when the style has no source named sourceId.
  • Status.invalidArgument when the source named sourceId isn't an image source.

Implementation

Future<List<LatLng>> getImageSourceCoordinates(String sourceId) => _queryList(
  _resultLatLng,
  (arena, completion) => raw.mln_map_get_image_source_coordinates(
    _handle.raw,
    nativeStringView(sourceId, arena).value,
    completion,
    nativeDiagnostic,
  ),
);