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
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.