Join us online - 19th of November
Save your spot
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

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