Table of Contents

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

map MapHandle
Asks for the data of a tile in a custom source.
sourceId string
Asks for the data of a tile in a custom source.
tileId CanonicalTileId
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.