Select to view content in your preferred language

Identify Widget for FlexViewer 2.1

52086
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
Luke,

    At the very beginning of the IdentifyWidget.mxml I declare the symbology, for the point it's id is ptIdentify. Then you could assign a glow filter to the actual graphic that gets added to the map.
0 Kudos
NitinBele
Emerging Contributor
Robert,

I wanna show a maptip on the mouse-over displaying the no. of returned feature before the user clicks the point to be identified.

Please suggest ?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Luke,

   If I am not misunderstanding the question than I need to explain how things really work in web mapping.

The map is just an image most of the time (now like ArcMap where the map is actually layered features). This means until you run an identify or query or something that returns graphics or you use featureLayers instead of dynamic or tiled layers, the type of info you want is not available on the client.

Let me know if I don't understand your question.
0 Kudos
NitinBele
Emerging Contributor
Thanks Robert,
I fully understand that(The map is just an image most of the time) and need to execute specific task on the layer to display\getInformation about features.

What I m interested is where to bound Events to do a specific task ?
For instance I could not see\able to found anything related to execute Identify when mouseclick is fired ?How that is happening ?

I can only figure out is you are calling IdentifyFeatures method on "drawEnd"drawTool.addEventListener(DrawEvent.DRAW_END, drawEnd);

Now suppose I want to execute identify to display Features in Infopopup on Mouseover event how should I bind Event to execute that infopopup?

I know its lot for you but just assume these questions are from a dumb fresher who is trying to work out well in your University and really trying hard to pass in first grade.:confused:

Lu.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Lu,

    OK. So every widget has access to a function called setMapAction.

setMapAction(DrawTool.CIRCLE,status:String,symbol:Symbol, callback:Function);


Now the question is, will your event that captures the mouse over be part of a widget (it does not sound like it). Using the graphic roll over event that will be firing you have access to the graphics geometry so there is no need for the DrawTool. The big part is getting a link back to the identify widget to execute it. My suggestion is to completely for get about this route. When you add the graphics to the map is when you are going to assign the event listener for the mouse roll over anyway so add a function that gets called by that event that does a QueryTask as you seem like you are only interested in that layer.

!!! OR !!!

Update to the FlexViewer 2.3 and use a PopUp window that does all this for you.

http://help.arcgis.com/en/webapps/flexviewer/help/01m3/01m300000013000000.htm
0 Kudos
GeraldLee__GISP
Frequent Contributor
Hello Robert,
I am using your Identify widget ( and it's sweet BTW!) and i want to return all the fields available in my feature attribute table. i have dozens of features and dozens of fields. Is there a wild card of some sort i could place in the <fields> bracket to accomplish this or do i have to input all the fieldnames into this line?
Thanks for sharing all your hard work with these widgets. I have used several of yours and i am very grateful!
Gerald
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Gerald,

   If I remember correctly all you have to do is leave the fields element empty:

<fields></fields>
0 Kudos
GeraldLee__GISP
Frequent Contributor
i'm not getteing any results to return. But i should tell you up front that i am trying to use your identify 2.2.3 widget inside of a flex version 2.3 application.
Thanks for the widgets!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Gerald,

   I have not migrated my widgets to 2.3 yet so it is not like to work yet.
0 Kudos
NitinBele
Emerging Contributor
Robert,

I want to change cursor according to type of selection feature criteria like point , rectangle etc.
basically I want to display what is the current selection criteria to the user.

Any pointers ?

Lu
0 Kudos