setCustomVectorSourceTileData method
- String sourceId,
- CanonicalTileId tileId,
- StyleVectorTileEncoding encoding,
- Uint8List data,
Sets the data of a tile in a custom vector source.
data is the tile, encoded as encoding. The source ignores data for a
tile that it hasn't asked for, or has since cancelled.
See mln_map_set_custom_vector_source_tile_data in the
C API reference.
Errors:
Status.notFoundwhen the style has no source namedsourceId.Status.invalidArgumentwhen the source namedsourceIdisn't a custom vector source.
Implementation
Future<CommandCompletion> setCustomVectorSourceTileData(
String sourceId,
CanonicalTileId tileId,
StyleVectorTileEncoding encoding,
Uint8List data,
) => _command(
(arena, completion) => raw.mln_map_set_custom_vector_source_tile_data(
_handle.raw,
nativeStringView(sourceId, arena).value,
_writeCanonicalTileId(tileId, arena).ref,
encoding.rawValue,
nativeBufferView(data, arena),
completion,
nativeDiagnostic,
),
);