Available Fields for Popup in a Clustered FeatureLayer

670
3
06-03-2020 04:29 PM
ZianChoy
Occasional Contributor

AGOL says that "cluster_count" is an available field in clustered layers. What are the names of the other fields used by the default clustering popup?

I would like to customize the popup and reformat the existing popup.

I know that in 4.*, they are:

cluster_count

cluster_avg_{fieldName}

cluster_type_{fieldName}

But the last 2 fields don't work in 3.x.

0 Kudos
3 Replies
ChristianBischof
Esri Contributor

As far as I know these there are no more than the ones you listed. It only depends on the renderer which ones are available and which are not. For example with uniqueValueRenderer there is only count available and the type gives you the most common type of the features which are clustered together.

See Styles and Configuration:

FeatureReductionCluster | ArcGIS API for JavaScript 4.15 

0 Kudos
ZianChoy
Occasional Contributor

I'm actually using the 3.* API. I referred to 4.* to give an example of what I was looking for.

0 Kudos
ChristianBischof
Esri Contributor

Sorry got you wrong. Can't really help you out with 3.* right off the cuff I've never used it before.

0 Kudos