On this page

Function featureFilter

  • 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.

    Parameters

    • 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

Was this helpful?
SDK JS
Reference
featureFilter