Select to view content in your preferred language

Is there any sample ArcGis cluster code for React.Js application ?

343
1
01-18-2024 03:38 AM
TapanPatra
New Contributor

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.

0 Kudos
1 Reply
ViktorSafar
Frequent Contributor

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-...

0 Kudos