filter
A filter is a property at the layer level that determines which features should be rendered in a style layer.
Filters are written as expressions, which give you fine-grained control over which features to include: the style layer only displays the features that match the filter condition that you define.
Note: Zoom expressions in filters are only evaluated at integer zoom levels. The feature-state
expression is not supported in filter expressions.
Parameters
filter
the expression filter to set