Issue: $feature.cluster_count not working in ValueExpression in UniqueValueRenderer

691
2
Jump to solution
09-28-2021 07:53 AM
AleksandreChilingarashvili
New Contributor

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

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
KristianEkenes
Esri Regular Contributor

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.

View solution in original post

2 Replies
KristianEkenes
Esri Regular Contributor

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.

AleksandreChilingarashvili
New Contributor

thanks for your answer!

0 Kudos