Hi,
I have been waiting for point clustering in JS API 4.x for last 2 years. I used to say to my customers that it is comming soon as it is claimed on functionality matrix Functionality matrix | ArcGIS API for JavaScript 4.12 .
I would very appriciate if somebody from Esri could give me a signal when it comes.
Thanks!
OK, thanks for the quick update. I'm all too familiar with trying to juggle multiple priorities .
Thanks. Version 3.x is not considered accessible by SiteImprove.
Version 4.x allows for the use of assistive technology so this is a priority for us.
No ETA yet on when the plan is. This is something we are still planning for, but trying to prioritize the work with other projects is a challenge.
Understood. And thank you for continuing to voice your desire for these improvements. We are in active discussions about prioritizing this work. No ETA yet on when the plan is. We're having to navigate work on other projects as well.
Hi Kristian,
Without being able to toggle through the records in each cluster in the popup this isn't useful for our maps so we have to stick with 3.x, which I'd like to get rid of in all our maps.
Fiona
I happened to come across this thread and just wanted to chime in here to say that we are also eagerly awaiting the equivalent functionality of getChildGraphics() in the 4.x API for our Geocortex products. We tried to find a workaround to discover which features are in a cluster, but in the end we weren't able to come up with anything that was 100% accurate. Unfortunately not knowing which features are in a given cluster limits the amount of useful interaction we can build with them. I'm glad to hear that it's at least in the design discussion phase. Is there a very rough ETA on when this might become available?Thanks,
Eric Parsons
Usecase of Clustering in the app I am developing is to show realtime location of users belonging to different categories. Each category needs to be represented using different color when points are not within a cluster. In case multiple categories of users belongs to a cluster, cluster color should be represented using a common color (i.e. Grey color). If cluster have users from single category, cluster color should be of category rather common color.
This kind of color coding really helps user to easily identify and differentiate between each cluster visually.
Regards,
Anand Paleja
Hi Anand,
Can you provide some more information about the expected workflow for your end users? What is the primary purpose of clustering in the apps you're writing? Are users going to be toggling clustering on and off? Something to give me a better idea of the context of the above requirements. Regarding the different cluster renderer, is there another renderer type you have in mind beyond just showing everything with the same color? We likely wouldn't use that as a case for exposing a separate cluster renderer since there is already a development workflow for that scenario.
Thanks for the feedback! It's very helpful.
Kristian
Thank very much for quick reply with example. This is surely helpful for me to decide, ArcGIS 4.x wont be useful for me specially for clustering. I would suggest few things for cluster, if at all there is a way to accommodate it in future:
- GetChildGraphics - get list of child graphics for a cluster
- Allow to switch between SummeryPopup and Graphics Popup (with navigation like 3.x) for cluster
- Different Renderer for Cluster and Points (which are not in cluster)
These features will be really helpful for many of users. As I have seen so many questions floating on the internet asking for these.
Cheers!
To change the color of the cluster point, you will need to switch the layer's renderer to a simple renderer with a single color at the time of cluster. Here's an example - https://codepen.io/kekenes/pen/GRZJLGM?editable=true&editors=100
I configure the behavior so that when clustering is enabled, all clusters have the same symbol. When you disable clustering, the type renderer is returned to the layer.
Regarding getChildGraphics, we don't support querying features by cluster at the moment. It's something we're still in design discussions about.
Hopefully that helps!
Kristian Ekenes Thank you very much for updates about Clustering. I am trying to implement cluster using latest version 4.16. I am unable to figure out few things. It will be helpful if you can guide me and tell me if its possible:
- Changing Color of Clustered point. I have implemented cluster using FeatureLayer. I know layer's color is controlled by its render. but I would like to show all clusters in some other color (than prominent category color), is it possible ?
- GetChildGraphics list on click of cluster. I want to show popup with navigation to navigate between all points in cluster like 3.x implementation but I am unable to figure it out how to archive it.
It will be helpful if you can guide me.
We're now looking at cluster labels. If you have an opinion/use case for control over cluster labels, then please participate in this poll -
It seems like it is here in beta in version 4.14
Release notes for 4.14 | ArcGIS API for JavaScript 4.14
Keyboard access is needed to tab between clusters. I've never done this, but it seems that Google has already figured this out for accessibility. We can't afford and Google (and ESRI does more) so I hope this can be incorporated soon. This is how Google does this:
https://equalentry.com/accessible-maps-on-the-web/
Hmm probably something like this would not be in the initial release, but we could look at adding this in a subsequent update. Can you talk a little bit more about what specific interaction you are looking for? Would this be the ability to tab between/expand details for different clusters using the keyboard?
I'd like clustering to be available on screen readers for accessibility. Is that also something that is being developed?
Can you add some keyboard shortcuts? I read a blog that Google Maps made these cluster maps easier to read on a screen reader.
#accessibility #federal accessibility standards
Thank you for the clarification, Matt! Then I would not be disappointed when 4.13 would be released. Good luck with developing. We really need this feature!
Thanks, Ben. I saw it long time ago. But I would like to have this features supported by Esri.
Hi Denis Pokotylyuk, I can't give any promises, but we are currently working on this and want to have clustering in some form by 4.14 (I.e., at feature parity with 3x). There have been some exciting server/service advancements that we want to leverage in 4.x where we can. In fact, I just got out of a meeting on this very topic.
By the way, if there's anything new you'd like to see in terms of clustering, please let us know!
I came across a custom solution that inherits graphics layer: https://github.com/nickcam/FlareClusterLayer
This is not an Esri supported workflow, but it's worth a look.
I guess 'coming soon' means that it will come whenever Esri thinks it is time to add this functionality... 🙂
I'd like to hold!
I mean at clustering is the BASIC map functionality requested by many customers.I just have to say to them "it is coming".
But when I see that new 4.12 version has "water rendering" but not "point clustering" I become quite dissapointed. Why Esri?
Make the basic first, prioritize more important things, please!
Don't hold your breath 🙂
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.