in 4.16 there were working this valueexpression
renderer: {
type: "unique-value",
field: "cluster_count",
valueExpression: "When($feature.cluster_count > 1 , 'low', 'lomk')",
but in newer versions this part of code is not working. I can't figure it out how can I only symbol the clusters where cluster count are more than 1, and I want different symbols for clusters where count is 1
Solved! Go to Solution.
In the context of a renderer $feature only gives you access to a layer's attributes. cluster_count is an attribute of a cluster graphic, and isn't part of the layer fields.
We're still in the planning stages of allowing people to customize the style of clusters. This would be disconnected from the layer style.
In the context of a renderer $feature only gives you access to a layer's attributes. cluster_count is an attribute of a cluster graphic, and isn't part of the layer fields.
We're still in the planning stages of allowing people to customize the style of clusters. This would be disconnected from the layer style.
thanks for your answer!