get

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

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"))
);

Return

expression

Parameters

input

expression input

See also

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

open fun get(@NonNull input: String): Expression

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"))
);

Return

expression

Parameters

input

string input

See also

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

open fun get(@NonNull key: Expression, @NonNull object: Expression): Expression
open fun get(@NonNull key: String, @NonNull object: Expression): Expression

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")))
);

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>