Skip to content

Supported style expressions and filters

Generated by cargo run --bin export_style_support. Do not edit by hand: a test fails when this file and the code disagree.

Anything absent here is not interpreted. An unsupported filter operator is logged and the layer renders unfiltered, so a missing operator shows up as too many features rather than none.

Filter operators

Operator
all
any
none
!
==
!=
>
>=
<
<=
has
!has
in
!in

Expression operators

Data

Feature property and zoom lookups, plus let/var bindings.

Operator
get
has
in
length
zoom
let
var

Logical

! and not are the same operator.

Operator
all
any
case
coalesce
match
if
!
not

Comparison

Both operands may themselves be expressions.

Operator
==
!=
<
<=
>
>=

Arithmetic

Operator
+
-
*
/
%
^
abs
ceil
floor
round
sqrt

String

Operator
concat
downcase
upcase

Interpolation

interpolate supports linear, exponential and cubic-bezier.

Operator
interpolate
step