Select to view content in your preferred language

Identify Widget for FlexViewer 2.1

60446
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
KomanDiabate
Deactivated User
Hi Robert,
I think it's my map services. My basemaps and other map services have some of the same layers, for example Parks. Therefore, I believe the result is coming from several different map services which I think is the reason I am getting multiple results.
I need to find a way to specify the map service or re-work my maps. Any suggestions?
Thanks.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Koman,

   You need to exclude those layers that you don't want or set their visibility to false.
0 Kudos
PaulHeinrich
Emerging Contributor
Robert,

Thanks for the useful Widget!  If you continue to develop it, it might be neat to include the ability to use several fixed locations instead of a search or single default search.

cheers,  Paul
0 Kudos
philippschnetzer
Frequent Contributor
Im using SFV 2.1 and Roberts Identify Widget 2.1.3 and only changing the xml to reflect my data.  Ive added the mxmls to my modules for compiling and I've attached the error that I receive.

Here's my xml - the only thing I have changed is the layer name and the fields - which I am sure are correct:


<configuration>
<identifylayeroption>visible</identifylayeroption>
<identifytolerance>5</identifytolerance>
<defaultzoomscale>5000</defaultzoomscale>
<keepidentifyactive>false</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>
  <layer>
   <name>prop</name>
   <fields>LNAME,PID,AAN</fields>
   <linkfield></linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer> 
</layers>
<info>widgets/InfoTemplates/InfoPopupWidget.swf</info>
</configuration>



THANKS!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Phillip,

   Are you saying that you have a map service in your FlexViewer that has a layer named "prop"?... Are you sure that is how the layer is named in your REST Services directory?
0 Kudos
philippschnetzer
Frequent Contributor
My layer name and field names are definitely correct - I have a dynamic service which I have labeled as 'prop' in my config.xml.   My config.xml has no errors in it.  In your IdentifyWidget.xml all I have changed is the layer name and field names.  Using Flex 4.0 SDK and I have the 'Use minimum version required by the Flex SDK' checked on under Flash Player options.........................................
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Phillip,

   OK I think this is the disconnect:
I have a dynamic service which I have labeled as 'prop' in my config.xml

What I am looking for in the IdentifyWidget.xml is the name of a LAYER not mapservice as it is defined in the REST SERVICE DIRECTORY not what you called the overall map service in the config.xml.

So use this example:

http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/Parcels/MapServer

If you go to the link above there is a layer named "Tax Parcels" that is what I am expecting the in xml.
0 Kudos
MarcWeinshenker1
Regular Contributor
Hi Robert,

Thanks very much for keeping this widget alive.

Where is the code or assignment for the label/tooltip for the Identify cursor?  The one that reads, "Click to add a point."  That wording doesn't go with the Identify function very well, to me anyway, and I would like to either edit it or remove it.  Is there someplace to change the text or choose not to display it?

Thanks,
Marc
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Marc,

   That is the new DrawTool's draw tips and is not controlled by my widget. The only way to change it is to modify the MapManager.mxml and add
drawTool.showDrawTips = false;
0 Kudos
MarcWeinshenker1
Regular Contributor
Marc,

   That is the new DrawTool's draw tips and is not controlled by my widget. The only way to change it is to modify the MapManager.mxml and add
drawTool.showDrawTips = false;


Thanks.  Now this is getting weird, though.  Why is that cursor showing up on your Identify widget?  I was also just about to start another thread about the Draw/Measure widget because when I select the measure tool the cursor does not change visually from the draw cursor and the action is to pan -- it does not measure at all.

Marc
0 Kudos