Select to view content in your preferred language

Identify Widget for FlexViewer 2.1

60938
266
09-23-2010 11:34 AM
RobertScheitlin__GISP
MVP Emeritus
All,

   I have been waiting for the Final release of the FlexViewer 2.1 before I started to push out some widgets I have been working on.

Here is my Identify Widget for Flex Viewer 2.1. I have tested to ensure proper functioning with FlexViewer 2.1 and am now releasing it to you since the API Team did not get one into the FlexViewer.

Here is the link:

http://www.arcgis.com/home/item.html?id=39cf66d58c234279ba728c50461a1a89

More FlexViewer 2.1 widgets to come stay tuned...
Tags (2)
0 Kudos
266 Replies
RobertScheitlin__GISP
MVP Emeritus
Marc,

   The reason it shows up on my identify tool is the fact that I am letting the FlexViewer framework handle the mouse interaction with the map and there for uses the drawTool (not the widget) to capture the mouse click and the drawTool is the component that has draw tips in the 2.x version of the API. The Draw/Measure Widget in the viewer is not like ArcMap where you select the measure tool and start drawing on the map and get the measurements back. The measurement portion works in conjunction with the graphic drawn on the screen. When you complete your drawing and have checked the measurement option then a text label of the measurement will be added to the map along with the graphic. Sorry if you already knew this and I am misunderstanding your issue.
0 Kudos
MarcWeinshenker1
Regular Contributor

   The reason it shows up on my identify tool is the fact that I am letting the FlexViewer framework handle the mouse interaction with the map .....


Thanks again, Robert.  Concerning the first part with the cursor, it's beyond my familiarity to understand it all.  I would have hoped a widget could choose it's cursor and behavior, but maybe that's my own ignorance.  As for the measure tool, I had no idea it worked that way and never saw anything that explained it.  I would prefer a measure tool to work like ArcMap, but this will do for now.

Back to customizing my viewer....

Thanks again.

Marc
0 Kudos
MelissaJohnson
Frequent Contributor
I am trying to configure the Identify Widget and have some questions. 

The problem I am having is when I identify, I guess the way the tool works any and all visible layers show the identify results.  It appears these are operational layers and basemap layers.  Is there some way similar to the <excludelayer> in the LayerList Widget to prevent some some layers from showing up in the results?   Am I doing something wrong?

I also found that if I do a locate using the Locate widget, and the Identify widget is still open, the new search criteria (address) comes up as the title in the pop-up, but the info under it stays from the previous "identify" session.
Thanks again for posting your code...the new Identify hyperlink functionality is GREAT!
Melissa
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Melissa,

    There is nothing that you are configuring incorrectly. My identify widget currently does not give you the ability to exclude certain layers. As far as the infopopup that is an esri bug that they are aware of and will fix in the next release.
0 Kudos
MarcWeinshenker1
Regular Contributor
I am trying to configure the Identify Widget and have some questions. 

The problem I am having is when I identify, I guess the way the tool works any and all visible layers show the identify results.  It appears these are operational layers and basemap layers.  Is there some way similar to the <excludelayer> in the LayerList Widget to prevent some some layers from showing up in the results?   Am I doing something wrong?



I am working with Robert's latest Identify widget for Flex Viewer 2.1 and I have modified the code to exclude showing data from layers and fields not defined in the IdentifyWidget.xml configuration file. 

In the IdentifyWidget.mxml file, down in the function called processIdentifyResults there is a conditional if(IdentFields) which includes an else block.  I commented out that entire else block.  I believe that IdentFields holds all the fields that come from the configuration file, so blocking out anything not in IdentFields keeps all data not specified in the configuration file from being displayed. 

You'll need to be using Flash Builder or some other solution to modify and recompile the code, of course.

This may not be an elegant solution, and Robert may cringe at it, but it works for me.

Marc
0 Kudos
BrianGeorge
Emerging Contributor
Excellent widget!
I'm sure this question has been posted already...

Is there a way to specify which layers can be identifiable? I am interested in using the identify widget to work for just one map service, and no others. Can this be done? What are the various options for <identifylayeroption> other than "visible" ?

Thanks!

Brian
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Brian,

   Just look at the post right above yours.
0 Kudos
BrianGeorge
Emerging Contributor
Robert,

Thank you for the quick response.

I am very new to Flex coding and slowly getting the hang of it. As for the mxml file, this is unfamiliar territory for me. I'm editing it in WordPad. I am sorry to be a bother, but what part of the code (the 'else' stuff) should be omitted to allow for only specified map layers/services to be identifiable?

Thanks,
Brian
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Brian,

   Even if you edit the mxml it would have to be recompiled for the change to take affect. I am considering adding this to the next version so probably best to just wait.
0 Kudos
PascalPiquemal
New Contributor
Hi Robert,

I have a strange behaviour when i clic on my result list to zoom on a feature. Red point appears on my top left corner, scale bar is reduced to zero length, and coord display are frozen.
I have a single dynamic layer in my map. Map wkid is set to "22033".

Any idea ?

Pascal
0 Kudos