Filters
Filters:
FilterTernary|FilterExpression|null|boolean
Filters can be used to change which features in a layer are rendered. Filters can be applied to a layer by the setLayerFilters method on the Felt controller.
Filters use a tree structure for combining expressions with logical operators, called a FilterTernary. When combining three or more conditions, you must use proper nesting rather than a flat list.
See the examples below for the correct structure to use when building complex filters.
Remarks
The possible operators are:
lt: Less thangt: Greater thanle: Less than or equal toge: Greater than or equal toeq: Equal tone: Not equal tocn: Containsnc: Does not containis: Isisnt: Is notin: Inni: Not in
The allowed boolean operators are:
and: Logical ANDor: Logical OR
Example
Last updated
Was this helpful?