Select to view content in your preferred language

Identify/Info of Multiple Items of the Same Layer (in Flex)

2419
18
04-07-2011 11:55 AM
AlexZhuk
Frequent Contributor
Is there a way to get information of several items/features of the same layer when they (items) overlap? It's a standard part of the Desktop or .Net Server. is this possible in Flex?
Tags (2)
0 Kudos
18 Replies
RobertScheitlin__GISP
MVP Emeritus
Alex,

If you want to identify multiple layers or everything in your case, than all you have to do is set the identifyParams.layerOption = "all".
0 Kudos
AlexZhuk
Frequent Contributor
Thanks for your suggestion. Unfortunately, I'm doing it in the Viewer for Flex, so I can't make your edit.
All I need is to get a choice of multiple Infos on multiple overlapping items in the same layer, see illustration here https://gis.itsi.com/SimpleInfo1.PNG. Right now I only get one item's info. And it's not necessarily the latest in my table, or biggest, etc. Just random, I guess.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Alex,

  Oh I guess that it would have helped if you said that you where trying to do this using the SimpleInfoWinWidget. It uses whichever geometry is on top as it gets triggered by mouse events. Why not use the identify widget?
0 Kudos
AlexZhuk
Frequent Contributor
Robert,
Pardon my ignorance, where can I find it? Identify Widget is not a part of standard Viewer 2.2.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Alex,

   You will find lots of user developed widget in the Flex Viewer code gallery.

http://help.arcgis.com/en/webapps/flexviewer/gallery.html
0 Kudos
AlexZhuk
Frequent Contributor
Robert,

Thank you very much!
Have a nice weekend.
0 Kudos
AlexZhuk
Frequent Contributor
Robert,

Would you be so kind to suggest what I need to put between the <name> brackets for the (0) sub layer from my multi-layer service (shown below in REST):

Home > EPA > CR_Mercury (MapServer)
EPA/CR_Mercury (MapServer)
View In: ArcMap ArcGIS JavaScript
Service Description:
Map Name: Main
Legend
All Layers and Tables
Layers:
- Total Hg (Nevada) (0)
- Filtered Hg (Nevada) (1)
- Total Hg (USGS) (2)
- Filtered Hg (USGS) (3)

I tried "CR_Mercury_msd", "Total Hg (SW/GW, Nevada)", and some other combinations but nothin works so far. BTW, all these four sub layers (0), (1), (2), and (3) are "feature" layers in the main config.xml file.

Thanks!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Alex,

   It is suppose to be the EXACT name of the layer as seen in the REST Services directory. So in your case it would be
Total Hg (Nevada)
for layer 0.
0 Kudos
AlexZhuk
Frequent Contributor
Robert,

Actually in my example yesterday I tried to simplify my layer names for you and messed up at the bottom. My real layer names are even more complex, something like
Filtered Hg (SW/GW, Nevada)
with comas, parentheses, and slashes. I typed them exactly in the widget (copy/paste), then I eliminated all "problematic" characters and replaced them with underscores - to no avail. But still thanks for the pointer. I'll keep trying. Does it mater that I work with FeatureServer layers?
I really appreciate your help!!!
0 Kudos