Function
MaplibreNativeFfiCustomSourceFetchTileCallback
Declaration
void
(* MaplibreNativeFfiCustomSourceFetchTileCallback) (
MaplibreNativeFfiMap* map,
const char* source_id,
MaplibreNativeFfiCanonicalTileId* tile_id,
gpointer user_data
)
Description [src]
Asks for the data of a tile in a custom source.
map and source_id name the source that asks. Return quickly. Once the
data is ready, pass it to
maplibre_native_ffi_map_set_custom_geometry_source_tile_data_async() or
maplibre_native_ffi_map_set_custom_vector_source_tile_data_async(). If it
fails to load, report that with
maplibre_native_ffi_map_set_custom_geometry_source_tile_error_async() or
maplibre_native_ffi_map_set_custom_vector_source_tile_error_async().
See mln_custom_source_fetch_tile_callback in the
C API reference.
Parameters
map-
Type:
MaplibreNativeFfiMapThe handle.
The data is owned by the caller of the function. source_id-
Type:
const char*The text.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. tile_id-
Type:
MaplibreNativeFfiCanonicalTileIdThe value.
The data is owned by the caller of the function. user_data-
Type:
gpointerThe data that the callback’s setter received.
The argument can be NULL.The data is owned by the caller of the function.