Problem with popup and points on a graphic layer

3519
1
05-18-2015 11:08 PM
UpakeDe_Silva1
New Contributor

I have a graphic layer with two points on a graphic layer, zoomed out such that they overlap. I have a Popup as the info window for the map with paging controls enabled.

My expectation is that when I click on the point, I would get 2 in the paging control. But I cannot get it to work, I just get the popup for the clicked point, without the paging for the other point.

I would appreciate any feedback. Code is attached

Tags (2)
0 Kudos
1 Reply
JakeSkinner
Esri Esteemed Contributor

Hi Upcake,

This blog is a little dated, but is still helpful:

Find graphics under a mouse click with the ArcGIS API for JavaScript | ArcGIS Blog

Another option you could use is the IdentifyTask.  This class uses the IdentifyParameters class, which allows you to specify a toleranceHere is an example that demonstrates this.