Select to view content in your preferred language

Identify Widget for FlexViewer 2.1

60462
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
AmyWright_Webber
Regular Contributor
Hello,

Has anyone utilized this function in a flex project that is not based on the FlexViewer 2.1?

I have an existing flex project where it seems this would save me a lot of work if I can use it without dependencies on the FlexViewer.

Thank you to all!

Sincerely,

Amy

Appalachian Council of Governments
Greenville, SC
0 Kudos
BarbaraPatterson
Emerging Contributor
Hi Robert - Any plans to add functionality for related records in the identify tool?

Thanks,

Barb Patterson
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Barbara,

   Not anytime soon... Plate is just to full.
0 Kudos
TravisGoad
Emerging Contributor
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.


Still having issues with Identify Widget.

Cadastre layer is a polygon layer, with about 20 different fields and I have tried mupltiple fields/alias.
I have tried point & line layers with no luck.

With a line layer :

config.xml
     <layer label="Roads" type="dynamic" visible="true"                  
  url="http://zzzzzzz/ArcGISServer/rest/services/6126370_Private/Roads_IrisNetworkArc_MRWA_MGA50_201008/MapServer"/>


 <widget label="Identify" left="330" top="80"
                icon="assets/images/i_info.png"
                config="widgets/Identify/IdentifyWidget.xml"
                url="widgets/Identify/IdentifyWidget.swf"/>  


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>Roads</name>
   <fields>ROAD_NAME</fields>
   <linkfield></linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>5000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
 </layers>
 <info>widgets/InfoTemplates/InfoPopupWidget.swf</info>
</configuration>



Any ideas?
0 Kudos
CaryChadwick
Emerging Contributor
Hi,

I have used Robert's Identify widget in my Flex app, however it is only returning attributes for the first field I define and not the others. Does this make sense? I am a total newbie at this, basically hacking my way through it. Below I have copied the text from my IdentifyWidget.xml. The two layers I have set up the Identify for are Sampling Stations and Classification Areas. The tool works great, but only returns values for the Station_ID field (for the Sampling Stations layer) and Area Classification (for the Classification Areas layer) but no other fields I have defined. I am stumped. Any help is greatly appreciated. Thanks!!

PS - I am using the uncompiled version 2.1.7 of the Identify widget.


<configuration>
<identifylayeroption>visible</identifylayeroption>
<identifytolerance>10</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 onlythese="true">
  <layer>
   <name>Sampling Stations</name>
   <fields>Station_ID, S_Classification, TOWN</fields>
   <linkfield></linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>500</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>Classification Areas</name>
   <fields>Area Classification, Area ID, Area Name</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>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Cary,

   The fields specified have to be the aliases of the fields if they have one.
0 Kudos
CaryChadwick
Emerging Contributor
Hi Robert,

Thanks for your super speedy reply. I believe I have indeed specified the field aliases in the <fields> tag.

Below is the info from the REST directory for the Classification Areas layer. Could it be something else? Does it have anything to do with the Display Field?

------------------------

Layer: Classification Areas (ID: 😎
Parent Layer: Shellfish Area Classifications

Display Field: Classification

Type: Feature Layer

Geometry Type:

Description:

Definition Expression:

Copyright Text:

Min. Scale: 0

Max. Scale: 0

Extent:

      XMin: 748177.43800588
      YMin: 544018.814004079
      XMax: 1252976.74999413
      YMax: 757912.188062727
      Spatial Reference: 2234

Fields:

    * Classification (Type: esriFieldTypeString, Alias: Area Classification)
    * Area_ID (Type: esriFieldTypeString, Alias: Area ID)
    * Area_Name (Type: esriFieldTypeString, Alias: Area Name)
    * Conditions (Type: esriFieldTypeString, Alias: Conditions)
    * Acres (Type: esriFieldTypeDouble, Alias: Acres)

Supported Operations:   Query Layer
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Carry,

    Can you ensure that you are using the latest version?
0 Kudos
CaryChadwick
Emerging Contributor
Hi Robert,

Yes, I'm pretty confident I downloaded version 2.1, it was just within the last month or so and the zip file says 2.1, is there a better way to know for sure? Sorry if that's a stupid question. The map services were created with ArcGIS Server 9.3, would that matter? Again, sorry for being such a neophyte, these forums have really helped me figure this out and 99% of the responses have been from you, so THANK YOU! esri should be sending you a paycheck!

I just noticed 2.2 was released today...does that mean I have to start all over?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Cary,

   What I really meant was which version of my widget are you using the latest is 2.1.7. I think I remember where some one was like you using a 9.3 map service and had an issue are you still running ArcGIS Server 9.3?
0 Kudos