CustomSourceFetchTileCallback typedef

CustomSourceFetchTileCallback = void Function(MapHandle map, String sourceId, CanonicalTileId tileId)

Asks for the data of a tile in a custom source.

map and sourceId name the source that asks. Return quickly. Once the data is ready, pass it to MapHandle.setCustomGeometrySourceTileData() or MapHandle.setCustomVectorSourceTileData(). If it fails to load, report that with MapHandle.setCustomGeometrySourceTileError() or MapHandle.setCustomVectorSourceTileError().

See mln_custom_source_fetch_tile_callback in the C API reference.

Implementation

typedef CustomSourceFetchTileCallback =
    void Function(MapHandle map, String sourceId, CanonicalTileId tileId);