For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Function featureFilter
- featureFilter(
filter: void | FilterSpecification,
rootKey: string,
globalState?: Record<string, any>,
): FeatureFilterParameters
- filter: void | FilterSpecification
MapLibre filter
- rootKey: string
Location of the filter in the style JSON (e.g.
layers[3].filter), used to prefix runtime warnings OptionalglobalState: Record<string, any>Global state object to be used for evaluating 'global-state' expressions
Returns FeatureFilter
filter-evaluating function
- filter: void | FilterSpecification
Given a filter expressed as nested arrays, return a new function that evaluates whether a given feature (with a .properties or .tags property) passes its test.