Select to view content in your preferred language

counting points that exists in a cluster

2709
1
08-26-2015 03:50 PM
GilbertoMonzon
Deactivated User

I’ve a ClusterLayer, how can i implement the counting points that exists in a cluster, depending on the map scale. In other cases I apply only (layer.graphics.length) but in a ClusterLayer, how?

0 Kudos
1 Reply
ReneRubalcava
Esri Frequent Contributor

Are you using this clusterfeaturelayer?

Each graphic in the cluster (cluster.graphics) should have a clusterCount attribute to let you know how many points make up the cluster. I think even the simple cluster layer has this.

If you want the total count of all data in featurelayer, I think _clusterData.length is property you want.

0 Kudos