Method

MaplibreNativeFfiCustomGeometrySourceOptionsset_fetch_tile

Declaration [src]

void
maplibre_native_ffi_custom_geometry_source_options_set_fetch_tile (
  MaplibreNativeFfiCustomGeometrySourceOptions* self,
  MaplibreNativeFfiCustomSourceFetchTileCallback callback,
  gpointer user_data,
  GDestroyNotify notify
)

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

callback

Type: MaplibreNativeFfiCustomSourceFetchTileCallback

The callback.

The argument can be NULL.
user_data

Type: gpointer

The data to pass to callback.

The argument can be NULL.
The data is owned by the caller of the method.
notify

Type: GDestroyNotify

The function that frees user_data after the last call.