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,
globalState?: Record<string, any>,
): FeatureFilterParameters
- filter: void | FilterSpecification
MapLibre filter
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.