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:
We have the following 2 questions:
Please let us know about any feedback!
Solved! Go to Solution.
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
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
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