Select to view content in your preferred language

Feature Layer event listener

765
2
Jump to solution
06-26-2012 02:32 PM
JohnGarvey
Deactivated User
This feels like it is simple but...

I am trying to get the attributes of a point when somebody clicks on the point. To do this, I added an event listener for MouseEvent.Click on the feature layer. The event fires, but I cannot find any attribute data in the returned event object. Is there a better event to listen for or is there a property on the mouse event that holds the info?

thanks,

-john
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
John,

   Is your event target not a graphic object? If it is then all you do is cast it to a graphics and use the attributes property.

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
John,

   Is your event target not a graphic object? If it is then all you do is cast it to a graphics and use the attributes property.
0 Kudos
JohnGarvey
Deactivated User
thanks, you led me in the right direction.
The target of the mouse click is a custom sprite whose parent is an esri graphic object.

-j
0 Kudos