Select to view content in your preferred language

Which Graphics layer was clicked on?

631
2
11-02-2012 02:21 PM
stevemclaughlin
Occasional Contributor
Hi, I have a map and have two GraphicsLayer on it, each with some graphics on them.
The map has an eventListener and I receive a MapMouseEvent returned when I click on a graphic.
How can I tell which graphicsLayer the item that was clicked on belongs to??

In the MapMouseEvent, there is a private property called 'originalTarget' with a variable graphicsLayer that contains what I am looking for, how do I get this value???
thanks,
steve
Tags (2)
0 Kudos
2 Replies
DasaPaddock
Esri Regular Contributor
The originalTarget property on MapMouseEvent will be made public in the 3.1 release in December.
0 Kudos
stevemclaughlin
Occasional Contributor
Awesome, thanks!
0 Kudos