GraphicsLayer to return array of graphics OnClick???

1137
4
02-07-2012 07:54 AM
MarcusC
New Contributor
ESRI API newbie here...

Sometimes on my graphicsLayer my images overlap. I'd thought the OnClick event would return not just the top image, but all the images under that click position.

Is there any way around this??

Thanks

Marcus
0 Kudos
4 Replies
derekswingley1
Frequent Contributor
Kelly (JS API team member) did a blog post on this a while back:  http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2010/02/08/Find-graphics-under-a-mouse-click-wi...
0 Kudos
MarcusC
New Contributor
Would that idea also work if the overlapping images come from different graphic layers?
0 Kudos
derekswingley1
Frequent Contributor
Would that idea also work if the overlapping images come from different graphic layers?


Yes, I posted a reply in your other thread:  http://forums.arcgis.com/threads/49525-How-to-trigger-multiple-GraphicsLayer-OnClick()-with-overlapp...
0 Kudos
MarcusC
New Contributor
Thank you!
0 Kudos