has
Tests for the presence of an property value in the current feature's properties.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
has(get("keyToValue"))
);
Content copied to clipboard
Return
expression
Parameters
key
the expression property value key
See also
<a href="https://maplibre. org/maplibre-style-spec/expressions/#has">Style specification</a>
Tests for the presence of an property value in the current feature's properties.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
has("keyToValue")
);
Content copied to clipboard
Return
expression
Parameters
key
the property value key
See also
<a href="https://maplibre. org/maplibre-style-spec/expressions/#has">Style specification</a>
Tests for the presence of an property value from another object.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
has(get("keyToValue"), get("keyToObject"))
);
Content copied to clipboard
Return
expression
Parameters
key
the expression property value key
object
an expression object
See also
<a href="https://maplibre. org/maplibre-style-spec/expressions/#has">Style specification</a>
Tests for the presence of an property value from another object.
Example usage:
FillLayer fillLayer = new FillLayer("layer-id", "source-id");
fillLayer.setFilter(
has("keyToValue", get("keyToObject"))
);
Content copied to clipboard
Return
expression
Parameters
key
the property value key
object
an expression object
See also
<a href="https://maplibre. org/maplibre-style-spec/expressions/#has">Style specification</a>