I want to show all features which are in cluster in list in arcgis api 3.4

315
2
08-05-2022 06:34 AM
ZeeshanRabbani
New Contributor

Hi

I want to show all features which are in current cluster in list inside the popup in 3.4, i want same popup of list as we get in arcgis api 4.24.

I have used hitTest() it is not working,

problem is i cannot get the features which are in the cluster on which I click(current cluster).

0 Kudos
2 Replies
ReneRubalcava
Frequent Contributor

In 3x, if a Graphic is aggregate, a cluster graphic, it has a method called getChildGraphics you can. use.

https://developers.arcgis.com/javascript/3/jsapi/graphic-amd.html#getchildgraphics

I have an old blog post from 2017 that might still be useful for 3x here.

https://odoe.net/blog/interactive-clusters-arcgis-api-javascript

0 Kudos
ZeeshanRabbani
New Contributor

Hi thankyou but this blog show same example as api sample shows

ZeeshanRabbani_0-1660125639519.png

The yellow highlighted next and previous button i dont need this I need to show all at a time in a list.
LIKE THIS

ZeeshanRabbani_1-1660126144249.png

Problem Im having is i cant get the items or features which are in current cluster(on which i click)

0 Kudos