not

open fun not(@NonNull input: Expression): Expression

Logical negation. Returns `true` if the input is `false`, and `false` if the input is `true`.

Example usage:


FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
    not(get("keyToValue"))
);

Return

expression

Parameters

input

expression input

See also

<a href="https://maplibre.org/maplibre-style-spec/expressions/#!">Style specification</a>

open fun not(input: Boolean): Expression

Logical negation. Returns `true` if the input is `false`, and `false` if the input is `true`.

Example usage:


FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
    not(false)
);

Return

expression

Parameters

input

boolean input

See also

<a href="https://maplibre.org/maplibre-style-spec/expressions/#!">Style specification</a>