Select to view content in your preferred language

Identify Widget with Graphics Layer

724
3
09-23-2010 05:06 PM
HenryKo
Deactivated User
Hi,

I am using Flex API 1.3 and based on the Sample Flex Viewer.

For the Identify Widget, is there a way I can do the Identify Task on a com.esri.ags.layers.GraphicsLayer?

Or as a way around it, do I have to use some sort of on-mouse-click event to display the graphics attributes on the Identify Widget results panel?

Thanks.
Tags (2)
0 Kudos
3 Replies
HenryKo
Deactivated User
Hi,

For those who are interested, I ended up simply using a loop to loop through all the graphics in the graphics layer, and say if a graphic is within a bounding box (calculated based on pixels) of the mouse-click, and if it is visible, then that graphic is being identified.

Another approach is to use on-mouse-over event for the graphics in the graphics layer (but I didn't implement this as I already implemented the loop method).

Cheers.
0 Kudos
NipaParikh
Deactivated User
Hello,

Is there anyway for you the code on how exactly did you do identifytask on the graphics layer here.  I would also like to do identifytask on the graphics layer and display attributes in the info window.

I would appreciate.

Thanks.

Nipa Parikh
0 Kudos
LizDaRos
Regular Contributor
Hi,
I've been trying to get the mouse-over event to work in the identify widget but I'm not having much luck and I'm not sure I understand your loop to loop way.
I was wondering if you could explain it more or get some help. I'd really like to display the graphics attributes on the Identify Widget results panel so my users can copy that attribute data.
Thanks,
Liz
0 Kudos