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
Was this helpful?
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.