|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <style_expression.h>
Data Fields | |
| uint32_t | fields |
| double | zoom |
| double | color_ramp_parameter |
| double | elevation |
| mln_buffer_view | feature |
| mln_buffer_view | feature_state |
| mln_buffer_view | global_state |
| mln_canonical_tile_id | canonical_tile_id |
| const mln_buffer_view * | available_images |
What one evaluation reads.
An input whose field bit is clear is absent. An expression that needs the zoom, feature data, or the color ramp parameter fails to evaluate without it, and an absent state reads as null.
| const mln_buffer_view* mln_style_expression_inputs::available_images |
The image IDs that the image expression reports as available. The expression reports any other ID as unavailable.
| mln_canonical_tile_id mln_style_expression_inputs::canonical_tile_id |
The tile that holds the feature, which the within and distance expressions need to place its geometry.
| double mln_style_expression_inputs::color_ramp_parameter |
The value of the heatmap-density and line-progress expressions, and of the elevation expression in a color-relief layer.
| double mln_style_expression_inputs::elevation |
The value of the elevation expression outside a color-relief layer.
| mln_buffer_view mln_style_expression_inputs::feature |
One UTF-8 GeoJSON Feature that feature data expressions read.
| mln_buffer_view mln_style_expression_inputs::feature_state |
A UTF-8 JSON object that the feature-state expression reads.
| uint32_t mln_style_expression_inputs::fields |
Bitwise combination of mln_style_expression_input_field values.
| mln_buffer_view mln_style_expression_inputs::global_state |
A UTF-8 JSON object that the global-state expression reads.
| double mln_style_expression_inputs::zoom |
The value of the zoom expression.