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

102
2
Jump to solution
4 weeks ago
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.

View solution in original post

AleksandreChilingarashvili
New Contributor

thanks for your answer!

0 Kudos