geometryType

Gets the feature's geometry type: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon.

Example usage:


SymbolLayer symbolLayer = new SymbolLayer("layer-id", "source-id");
symbolLayer.setProperties(
    textField(concat(get("key-to-value"), literal(" "), geometryType()))
);

Return

expression

See also

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