Hi All, I am looking some sample code for cluster.
Is there any sample ArcGis cluster code for React.Js application ?On selecting the cluster it should un-cluster and show the dynamic icons.
You can query the layerView by setting query.aggregateIds to be the cluster's objectID. You get back the "backing" features - but there is no way to show them from within the existing layer - you need to show them by other means. The sample below creates new Graphics out of the backing features and adds them to the mapView.graphics.
https://developers.arcgis.com/javascript/latest/sample-code/featurereduction-cluster-query/#display-cluster-convex-hull
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.