get
Retrieves a property value from the current feature's properties, or from another object if a second argument is provided. Returns null if the requested property is missing.
Example usage:
SymbolLayer symbolLayer = new SymbolLayer("layer-id", "source-id");
symbolLayer.setProperties(
textField(get("key-to-feature"))
);
Content copied to clipboard
Return
expression
Parameters
input
expression input
See also
<a href="https://maplibre. org/maplibre-style-spec/expressions/#get">Style specification</a>
Retrieves a property value from the current feature's properties, or from another object if a second argument is provided. Returns null if the requested property is missing.
Example usage:
SymbolLayer symbolLayer = new SymbolLayer("layer-id", "source-id");
symbolLayer.setProperties(
textField(get("key-to-feature"))
);
Content copied to clipboard
Return
expression
Parameters
input
string input
See also
<a href="https://maplibre. org/maplibre-style-spec/expressions/#get">Style specification</a>
Retrieves a property value from another object. Returns null if the requested property is missing.
Example usage:
SymbolLayer symbolLayer = new SymbolLayer("layer-id", "source-id");
symbolLayer.setProperties(
textField(get("key-to-property", get("key-to-object")))
);
Content copied to clipboard
Return
expression
Parameters
key
a property value key
object
an expression object
See also
<a href="https://maplibre. org/maplibre-style-spec/expressions/#get">Style specification</a>