setImageSourceCoordinates method
Implementation
void setImageSourceCoordinates(String sourceId, List<LatLng> coordinates) =>
_discard((arena, completion) {
final nativecoordinates = arena<raw.mln_lat_lng>(
coordinates.isEmpty ? 1 : coordinates.length,
);
for (var index = 0; index < coordinates.length; index++) {
_writeLatLng(
coordinates[index],
arena,
into: nativecoordinates + index,
);
}
return raw.mln_map_set_image_source_coordinates(
_handle.raw,
nativeStringView(sourceId, arena).value,
nativecoordinates,
coordinates.length,
completion,
nativeDiagnostic,
);
});