clusterProperties

abstract var clusterProperties: Json?(source)

An object defining custom properties on generated clusters if clustering is enabled, aggregating values from clustered points. Has form {"property_name": [operator, map_expression]}. operator is any expression function that accepts at least 2 operands (e.g. "+" or "max") — it accumulates the property value from clusters/points the cluster contains; map_expression produces the value of a single point.

Example: {"sum": ["+", ["get", "scalerank"]]}.