setCustomVectorSourceTileError method

Future<CommandCompletion> setCustomVectorSourceTileError(
  1. String sourceId,
  2. CanonicalTileId tileId,
  3. String message
)

Reports that a tile of a custom vector source failed to load.

See mln_map_set_custom_vector_source_tile_error 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 a custom vector source.

Implementation

Future<CommandCompletion> setCustomVectorSourceTileError(
  String sourceId,
  CanonicalTileId tileId,
  String message,
) => _command(
  (arena, completion) => raw.mln_map_set_custom_vector_source_tile_error(
    _handle.raw,
    nativeStringView(sourceId, arena).value,
    _writeCanonicalTileId(tileId, arena).ref,
    nativeStringView(message, arena).value,
    completion,
    nativeDiagnostic,
  ),
);