Identify Widget for FlexViewer 2.1

46050
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
xintan
by
New Contributor
hi,
CAN I ask a silly question, where is the config.xml file you mentioned, I can't find it.
thanks.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Roger,

   Almost every widget has an xml configuration file that it uses. By widget development convention the file is named the same as the widget itself, so the file you are looking for is called IdentifyWidget.xml
0 Kudos
xintan
by
New Contributor
Hi,
Thanks for the quick reply.
But It seems the widget is not working on my polygon layer.
See attachment.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Andrea,

   I don't have any plans for video capability in the identify widget. If you are dealing with WMV (windows Media Video) than you can download the Windows Media Encoder (free) and encode your video for streaming from your standard web server just like you did for your pdfs (meaning hosting them on your server).
0 Kudos
TravisGoad
New Contributor
Hi, Thanks for your great widget.

However I'm having trouble getting it to identify specified layers.  It says 'Loading...' but that stops and shows no results.  Same problem with polygons, lines and points.
Having <layers onlythese="false"> has no problems,
I'm using version 2.1.7

This is my config.xml :

           <layer label="Cadastre" type="dynamic" visible="true"          
  url="http://41e2821/arcgis/rest/services/612637000_GEHU/Cadastre_MRWA_MGA50_201011/MapServer/"/>



And this is my IdentifyWidget.xml :

<configuration>
 <identifylayeroption>visible</identifylayeroption>
 <identifytolerance>5</identifytolerance>
 <defaultzoomscale>5000</defaultzoomscale>
 <keepidentifyactive>true</keepidentifyactive>
 <labels>
  <zoom2message>Click to Zoom to Point</zoom2message>
  <identifylabel>Identify</identifylabel>
  <resultslabel>Results</resultslabel>
  <descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel>
  <pointlabel>Identify</pointlabel>
  <clearlabel>Clear</clearlabel>
  <loadinglabel>Loading...</loadinglabel>
  <selectionlabel>Features Identified:</selectionlabel>
 </labels>
 <layers onlythese="true">
  <layer>
   <name>Cadastre</name>
   <fields>LEGAL_AREA</fields>
   <linkfield></linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>


Any suggestions?

Thanks!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Trav351,

I would begin by removing the last slash from your mapservice in your config.xml.

I have not had anyone report this issue so that is the only thing that looks wrong with your configuration.

<layer label="Cadastre" type="dynamic" visible="true"          
  url="http://41e2821/arcgis/rest/services/612637000_GEHU/Cadastre_MRWA_MGA50_201011/MapServer/"/>
0 Kudos
TravisGoad
New Contributor
Hi thanks for looking at this for me,

I removed the slash and it hasn't made any difference unfortunately.

The service is only a MapService, is that ok?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Travis,

   So does Cadastre get identified when you set
<layers onlythese="false">
?

Is LEGAL_AREA the field alias? The identify tool requires you to specify the fields using their field alias.
0 Kudos
TravisGoad
New Contributor
Travis,

   So does Cadastre get identified when you set
<layers onlythese="false">
?

Is LEGAL_AREA the field alias? The identify tool requires you to specify the fields using their field alias.


Hi Robert thanks again for your reply,

Yes the field name and alias are identical.

All the Cadastre fields are displayed when set to
<layers onlythese="false">
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Travis,

    What geometry type is the Cadastre map service layer? For testing can you add another field to your fields element, like LEGAL_AREA,SOME_OTHER_FIELD? This issue is strange and I have not run up against it before.
0 Kudos