MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
mln_style_expression_inputs Struct Reference

#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

Detailed Description

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.

Field Documentation

◆ available_images

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.

◆ canonical_tile_id

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.

◆ color_ramp_parameter

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.

◆ elevation

double mln_style_expression_inputs::elevation

The value of the elevation expression outside a color-relief layer.

◆ feature

mln_buffer_view mln_style_expression_inputs::feature

One UTF-8 GeoJSON Feature that feature data expressions read.

◆ feature_state

mln_buffer_view mln_style_expression_inputs::feature_state

A UTF-8 JSON object that the feature-state expression reads.

◆ fields

uint32_t mln_style_expression_inputs::fields

Bitwise combination of mln_style_expression_input_field values.

◆ global_state

mln_buffer_view mln_style_expression_inputs::global_state

A UTF-8 JSON object that the global-state expression reads.

◆ zoom

double mln_style_expression_inputs::zoom

The value of the zoom expression.


The documentation for this struct was generated from the following file: