FeatureReductionCluster for points on top of each other

637
2
Jump to solution
12-14-2020 06:28 AM
MichailMarinakis1
Occasional Contributor

Hi all, 

we are using the FeatureReductionCluster mechanism to one of our point layers. It works like charm. We use the common attribute cluster_count as a label for the clusters. We would also like to have a popup for all the single point features behind the cluster. Since this is not foreseen in the FeatureReductionCluster mechanism, we have added the same feature layer with opacity = 0 and a popup template.

In some cases, we have multiple points on top of each other. The result is something like below:

Screenshot 2020-12-14 150515.png

We have the following 2 questions:

  1. Is there any plan to click and show the popup for the unique features below even when the FeatureReductionCluster is activated on the layer and the features are still clustered?
  2. If there are multiple points on top of each other, is there a way to show as cluster label, the number of features behind and not the number of geographic points with different coordinates? In the example above, the label of the cluster is 2 but on the popup it detects correctly 6 features (a group of 3 points with the same x and y and another group of 3 different points with the same x and y). It is confusing to see a different feature count between the cluster and the popup.

Please let us know about any feedback!

0 Kudos
1 Solution

Accepted Solutions
KristianEkenes
Esri Regular Contributor

Hi Michail,

> Is there any plan to click and show the popup for the unique features below even when the FeatureReductionCluster is activated on the layer and the features are still clustered?

Yes. You will be able to configure this in your app with the 4.18 version of the JS API, which will be available tomorrow. :) We are considering making the "browse features" action available by default in another release. Keep an eye out for the sample called "Query cluster features" tomorrow afternoon. You can use the code in there to implement this.

If there are multiple points on top of each other, is there a way to show as cluster label, the number of features behind and not the number of geographic points with different coordinates?

This looks like a clustering bug where two clusters are drawn on top of each other and the cluster with a size of 2 is on top. We'll need to investigate. Can you share that issue with support so we can get it into our system? The popup with six features doesn't appear to be the cluster popup since we don't provide browsing capabilities by default.

 

Hopefully that helps!

 

Kristian

View solution in original post

0 Kudos
2 Replies
KristianEkenes
Esri Regular Contributor

Hi Michail,

> Is there any plan to click and show the popup for the unique features below even when the FeatureReductionCluster is activated on the layer and the features are still clustered?

Yes. You will be able to configure this in your app with the 4.18 version of the JS API, which will be available tomorrow. :) We are considering making the "browse features" action available by default in another release. Keep an eye out for the sample called "Query cluster features" tomorrow afternoon. You can use the code in there to implement this.

If there are multiple points on top of each other, is there a way to show as cluster label, the number of features behind and not the number of geographic points with different coordinates?

This looks like a clustering bug where two clusters are drawn on top of each other and the cluster with a size of 2 is on top. We'll need to investigate. Can you share that issue with support so we can get it into our system? The popup with six features doesn't appear to be the cluster popup since we don't provide browsing capabilities by default.

 

Hopefully that helps!

 

Kristian

0 Kudos
MichailMarinakis1
Occasional Contributor

Hi Kristian,

thank you very much for the feedback! 

Good news about the latest version of the API. We will try it, for sure. 

For the second point, we will contact support with sample code and data, and steps to reproduce the issue. 

Michail

 

0 Kudos