|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <query.h>
One rendered-feature query hit borrowed for a completion callback.
Every view is valid only for that callback; copy what the host keeps. feature is one UTF-8 GeoJSON Feature, and layer_id is the style layer that rendered it. A feature that several style layers render yields one hit per layer. source_id, source_layer_id, and state are present when the matching field bit is set; a layer without a source, such as a location indicator, has no source_id. state is a UTF-8 JSON object.