getImageSourceCoordinates method
- 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.notFoundwhen the style has no source namedsourceId.Status.invalidArgumentwhen the source namedsourceIdisn'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,
),
);