Delegate CustomSourceFetchTileCallback
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
Asks for the data of a tile in a custom source.
public delegate void CustomSourceFetchTileCallback(MapHandle map, string sourceId, CanonicalTileId tileId)
Parameters
mapMapHandle- Asks for the data of a tile in a custom source.
sourceIdstring- Asks for the data of a tile in a custom source.
tileIdCanonicalTileId- Asks for the data of a tile in a custom source.
Remarks
map and sourceId name the source that asks. Return
quickly. Once the data is ready, pass it to
MapHandle.SetCustomGeometrySourceTileDataAsync() or
MapHandle.SetCustomVectorSourceTileDataAsync(). If it fails to load,
report that with MapHandle.SetCustomGeometrySourceTileErrorAsync() or
MapHandle.SetCustomVectorSourceTileErrorAsync().
See mln_custom_source_fetch_tile_callback in the C API reference.