ArcGis esri javascript api get data from cluster on click - getchildgraphics() - v4.14

563
1
07-10-2020 02:32 AM
ArunRaj
New Contributor

event.graphic.getChildGraphics()  equvialent in 4.14 api

I am using point cluster in feature layer and able to cluster the data. Now i need to get all item id in a particular cluster on click.

this._view.on("click", (event) => {  this._view.hitTest(event).then(response => {    console.log(response.results[0].graphic['attributes'])  }}


This gives output as
  clusterId: 16127514  cluster_count: 13  cluster_type_type: "seperated"

how to get all the data such as itemid, itemname of all 13 items in this cluster
0 Kudos
1 Reply
DanielFrunza
New Contributor

Do you have a solution for this?

0 Kudos