Roberts 2.4 Identify Widget?

2684
19
12-15-2011 08:31 AM
jamesdiaz
New Contributor
Does anyone know where I can download Roberts Identify Widget? if anyone is able to email it to me I would greatly appreciate it. diaz.james@mail.dc.state.fl.us

thanks
Tags (2)
0 Kudos
19 Replies
RobertScheitlin__GISP
MVP Emeritus
James,

   I put out new versions of my widgets immediately when a new version of the Viewer is released. I do not keep uncompiled code for older versions but I do have the compiled code for all the way back to 2.1.

Here is the compiled for 2.4
0 Kudos
jamesdiaz
New Contributor
Thanks Robert, you are always a life saver!
0 Kudos
AlanHope
New Contributor III
Robert
I seem to be hitting a brick wall after being guided to your wonderful work by ESRI support to fill a void  (we are in the process of migrating from ADF to Flex). I have employed you Identify Widget and have a few questions.
When attempting to identify the dialog box returns blank
I have attempted this with onlythese set to both true and false
I am attempting this with a map which contains two dynamic layers did I miss something in the documentation?
Thank you for both your efforts on coding this and the wonderful degree of support you are offering
Al
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Al,

   Post your IdentifyWidget.xml so I can have a look.
0 Kudos
VladislavMasatin
New Contributor
Found bug in new version. maybe it is because Im still using 9.3 version. I have different layers with one link in each to diffirent type of documents like pdf/doc/etc and different icon depending on document type. When I'd like to get information icon is not shown in ~50% cases. I have not found any dependence when icon is shown and when not. I have maked some print screenes:
A config file:
[ATTACH=CONFIG]10958[/ATTACH]

And i found place where two same layer polygons are intersected and for one icon is displayed, for second not:
[ATTACH=CONFIG]10956[/ATTACH]

[ATTACH=CONFIG]10957[/ATTACH]
Some times icon is shown for one polygon, some times for second:
[ATTACH=CONFIG]10959[/ATTACH]
0 Kudos
AlanHope
New Contributor III
Al,

   Post your IdentifyWidget.xml so I can have a look.


Thanks for taking the time to look at this

<?xml version="1.0" ?>
<configuration>
 <betareturngeometryfix>true</betareturngeometryfix>
 <identifylayeroption>visible</identifylayeroption>
 <identifytolerance>5</identifytolerance>
 <defaultzoomscale>5000</defaultzoomscale>
 <keepidentifyactive>true</keepidentifyactive>
 <returngeometryforzoom>true</returngeometryforzoom>
 <enablelineselect>true</enablelineselect>
 <enbleextentselect>true</enbleextentselect>
 <enablepolyselect>true</enablepolyselect>
 <enablemouseovergraphicsinfo>true</enablemouseovergraphicsinfo>
 <enablemouseoverrecordinfo>true</enablemouseoverrecordinfo>
 <usemaptime>false</usemaptime>
 <autoactivatedtool></autoactivatedtool><!-- possible values are extent or polygon or mappoint or polyline or nothing -->
 <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 by Point</pointlabel>
  <linelabel>Identify by Polyline</linelabel>
  <rectlabel>Identify by Rectangle</rectlabel>
  <polylabel>Identify by Polygon</polylabel>
  <clearlabel>Clear</clearlabel>
  <loadinglabel>Loading...</loadinglabel>
 </labels>
 <useproxy>
  <proxylayer>
   <!--name>Imagery</name-->
  </proxylayer>
 </useproxy>
 <layers onlythese="false">
  <layer>
   <name>Dynamic Labels</name>
   <fields>POLEID,MUNI,BELLID,HEIGHT,TYPE,CLASS,SERVCNTR,OWNERSHIP,CABLE_AREA</fields>
   <links>
    <link includeinresults="false" field="" alias="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix></iconsuffix>
    </link>
   </links>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
 </layer>
  <!--  <layer>
   <name>LandUse</name>
   <fields>LANDUSE_NAME</fields>
   <links>
    <link includeinresults="false" field="" alias="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix></iconsuffix>
    </link>
   </links>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>Parcels</name>
   <fields>PARCELID</fields>
   <links>
    <link includeinresults="false" field="" alias="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix></iconsuffix>
    </link>
   </links>
   <zoomscale>12000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>TrafficCams</name>
   <fields>ONLINE,DESCRIPTION,LAST_UPDATED,URL</fields>
   <links>
    <link includeinresults="false" field="URL" alias="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix>http://help.arcgis.com/en/webapps/flexviewer/live/assets/images/i_camera.png</iconsuffix>
    </link>
    <link includeinresults="true" field="ONLINE" alias="get me out of here">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix>http://help.arcgis.com/en/webapps/flexviewer/live/assets/images/i_globe.png</iconsuffix>
    </link>
   </links>
   <zoomscale>2000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>PoliceStations</name>
   <fields>NAME,ADDRESS</fields>
   <links>
    <link includeinresults="false" field="" alias="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix></iconsuffix>
    </link>
   </links>
   <zoomscale>2000</zoomscale>
   <forcescale>true</forcescale>
  </layer> -->
  <!--<layer>
   <name>Weather Observations</name>
   <fields>Icon_used,URL,Type,OBJECTID</fields>
   <links>
    <link includeinresults="false" field="URL"  alias="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield>Icon_used</iconfield>
     <iconprefix>http://gislap134/FlexViewer2.4/assets/images/i_</iconprefix>
     <iconsuffix>.png</iconsuffix>
    </link>
   </links>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>-->
 </layers>
 <symbols>
     <simplefillsymbol color="0x448ccb" alpha="0.4" style="solid">
      <outline color="0x448ccb" alpha="0.8" width="2"/>
     </simplefillsymbol>
     <simplemarkersymbol style="circle" size="12" color="0x448ccb" alpha="0.8" xoffset="0" yoffset="0" angle="0">
      <outline style="solid" color="0xffffff" alpha="0.8" width="1"/>
     </simplemarkersymbol>
     <picturemarkersymbol url="assets/images/i_info.png" height="30" width="30" xoffset="0" yoffset="0" />
  <simplelinesymbol color="0x448ccb" alpha="0.8" width="2"/>
    </symbols>
</configuration>
0 Kudos
AlanHope
New Contributor III
Thanks for taking the time to look at this

<?xml version="1.0" ?>
<configuration>
 <betareturngeometryfix>true</betareturngeometryfix>
 <identifylayeroption>visible</identifylayeroption>
 <identifytolerance>5</identifytolerance>
 <defaultzoomscale>5000</defaultzoomscale>
 <keepidentifyactive>true</keepidentifyactive>
 <returngeometryforzoom>true</returngeometryforzoom>
 <enablelineselect>true</enablelineselect>
 <enbleextentselect>true</enbleextentselect>
 <enablepolyselect>true</enablepolyselect>
 <enablemouseovergraphicsinfo>true</enablemouseovergraphicsinfo>
 <enablemouseoverrecordinfo>true</enablemouseoverrecordinfo>
 <usemaptime>false</usemaptime>
 <autoactivatedtool></autoactivatedtool><!-- possible values are extent or polygon or mappoint or polyline or nothing -->
 <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 by Point</pointlabel>
  <linelabel>Identify by Polyline</linelabel>
  <rectlabel>Identify by Rectangle</rectlabel>
  <polylabel>Identify by Polygon</polylabel>
  <clearlabel>Clear</clearlabel>
  <loadinglabel>Loading...</loadinglabel>
 </labels>
 <useproxy>
  <proxylayer>
   <!--name>Imagery</name-->
  </proxylayer>
 </useproxy>
 <layers onlythese="false">
  <layer>
   <name>Dynamic Labels</name>
   <fields>POLEID,MUNI,BELLID,HEIGHT,TYPE,CLASS,SERVCNTR,OWNERSHIP,CABLE_AREA</fields>
   <links>
    <link includeinresults="false" field="" alias="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix></iconsuffix>
    </link>
   </links>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
 </layer>
  <!--  <layer>
   <name>LandUse</name>
   <fields>LANDUSE_NAME</fields>
   <links>
    <link includeinresults="false" field="" alias="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix></iconsuffix>
    </link>
   </links>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>Parcels</name>
   <fields>PARCELID</fields>
   <links>
    <link includeinresults="false" field="" alias="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix></iconsuffix>
    </link>
   </links>
   <zoomscale>12000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>TrafficCams</name>
   <fields>ONLINE,DESCRIPTION,LAST_UPDATED,URL</fields>
   <links>
    <link includeinresults="false" field="URL" alias="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix>http://help.arcgis.com/en/webapps/flexviewer/live/assets/images/i_camera.png</iconsuffix>
    </link>
    <link includeinresults="true" field="ONLINE" alias="get me out of here">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix>http://help.arcgis.com/en/webapps/flexviewer/live/assets/images/i_globe.png</iconsuffix>
    </link>
   </links>
   <zoomscale>2000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>PoliceStations</name>
   <fields>NAME,ADDRESS</fields>
   <links>
    <link includeinresults="false" field="" alias="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix></iconsuffix>
    </link>
   </links>
   <zoomscale>2000</zoomscale>
   <forcescale>true</forcescale>
  </layer> -->
  <!--<layer>
   <name>Weather Observations</name>
   <fields>Icon_used,URL,Type,OBJECTID</fields>
   <links>
    <link includeinresults="false" field="URL"  alias="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield>Icon_used</iconfield>
     <iconprefix>http://gislap134/FlexViewer2.4/assets/images/i_</iconprefix>
     <iconsuffix>.png</iconsuffix>
    </link>
   </links>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>-->
 </layers>
 <symbols>
     <simplefillsymbol color="0x448ccb" alpha="0.4" style="solid">
      <outline color="0x448ccb" alpha="0.8" width="2"/>
     </simplefillsymbol>
     <simplemarkersymbol style="circle" size="12" color="0x448ccb" alpha="0.8" xoffset="0" yoffset="0" angle="0">
      <outline style="solid" color="0xffffff" alpha="0.8" width="1"/>
     </simplemarkersymbol>
     <picturemarkersymbol url="assets/images/i_info.png" height="30" width="30" xoffset="0" yoffset="0" />
  <simplelinesymbol color="0x448ccb" alpha="0.8" width="2"/>
    </symbols>
</configuration>


Ok I think I have found why nothing is being displayed I ran the developer tools within IE and got 3 events - 2 from my REST end points got results however the third from the ESRI services got the following error
{"error":{"code":400,"message":"Unable to complete  operation.","details":["Identify operation not supported on this service"]}}
Any Ideas?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Alan,

   Make sure that you do not have the shape or objectid fields hidden in the mxd that you use for the published map service (any of the layers).
0 Kudos
AlanHope
New Contributor III
Alan,

   Make sure that you do not have the shape or objectid fields hidden in the mxd that you use for the published map service (any of the layers).


Reconfigured the XML and am getting a little further - but still nothing in the results window....
When debugging using the IE9 Dev tools I can see the response from all the services coming back (The Street base map did not have Identify enabled but the Imagery layer does so that is why I was getting the 400 error earlier) and the data looks good (Object ID's and shape data are contained) but still nothing is displayed
Here is what I am using now in my XML
<?xml version="1.0" ?>
<configuration>
 <betareturngeometryfix>false</betareturngeometryfix>
 <identifylayeroption>visible</identifylayeroption>
 <identifytolerance>5</identifytolerance>
 <defaultzoomscale>2000</defaultzoomscale>
 <keepidentifyactive>true</keepidentifyactive>
 <returngeometryforzoom>true</returngeometryforzoom>
 <enablelineselect>true</enablelineselect>
 <enbleextentselect>true</enbleextentselect>
 <enablepolyselect>true</enablepolyselect>
 <enablemouseovergraphicsinfo>true</enablemouseovergraphicsinfo>
 <enablemouseoverrecordinfo>true</enablemouseoverrecordinfo>
 <usemaptime>false</usemaptime>
 <autoactivatedtool></autoactivatedtool><!-- possible values are extent or polygon or mappoint or polyline or nothing -->
 <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 by Point</pointlabel>
  <linelabel>Identify by Polyline</linelabel>
  <rectlabel>Identify by Rectangle</rectlabel>
  <polylabel>Identify by Polygon</polylabel>
  <clearlabel>Clear</clearlabel>
  <loadinglabel>Loading...</loadinglabel>
 </labels>
 <useproxy>
  <proxylayer>
   <!--name>Imagery</name-->
  </proxylayer>
 </useproxy>
 <layers onlythese="true">
  <layer>
   <name>Pole Master</name>
   <fields>POLEID,MUNI</fields>
   <links>
    <link includeinresults="false" field="" alias="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix></iconsuffix>
    </link>
   </links>
   <zoomscale>2000</zoomscale>
   <forcescale>false</forcescale>
 </layer>
  <!--  <layer>
   <name>LandUse</name>
   <fields>LANDUSE_NAME</fields>
   <links>
    <link includeinresults="false" field="" alias="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix></iconsuffix>
    </link>
   </links>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>Parcels</name>
   <fields>PARCELID</fields>
   <links>
    <link includeinresults="false" field="" alias="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix></iconsuffix>
    </link>
   </links>
   <zoomscale>12000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>TrafficCams</name>
   <fields>ONLINE,DESCRIPTION,LAST_UPDATED,URL</fields>
   <links>
    <link includeinresults="false" field="URL" alias="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix>http://help.arcgis.com/en/webapps/flexviewer/live/assets/images/i_camera.png</iconsuffix>
    </link>
    <link includeinresults="true" field="ONLINE" alias="get me out of here">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix>http://help.arcgis.com/en/webapps/flexviewer/live/assets/images/i_globe.png</iconsuffix>
    </link>
   </links>
   <zoomscale>2000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>PoliceStations</name>
   <fields>NAME,ADDRESS</fields>
   <links>
    <link includeinresults="false" field="" alias="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix></iconsuffix>
    </link>
   </links>
   <zoomscale>2000</zoomscale>
   <forcescale>true</forcescale>
  </layer> -->
  <!--<layer>
   <name>Weather Observations</name>
   <fields>Icon_used,URL,Type,OBJECTID</fields>
   <links>
    <link includeinresults="false" field="URL"  alias="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield>Icon_used</iconfield>
     <iconprefix>http://gislap134/FlexViewer2.4/assets/images/i_</iconprefix>
     <iconsuffix>.png</iconsuffix>
    </link>
   </links>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>-->
 </layers>
 <symbols>
     <simplefillsymbol color="0x448ccb" alpha="0.4" style="solid">
      <outline color="0x448ccb" alpha="0.8" width="2"/>
     </simplefillsymbol>
     <simplemarkersymbol style="circle" size="12" color="0x448ccb" alpha="0.8" xoffset="0" yoffset="0" angle="0">
      <outline style="solid" color="0xffffff" alpha="0.8" width="1"/>
     </simplemarkersymbol>
     <picturemarkersymbol url="assets/images/i_info.png" height="30" width="30" xoffset="0" yoffset="0" />
  <simplelinesymbol color="0x448ccb" alpha="0.8" width="2"/>
    </symbols>
</configuration>

Also the identify layer tag does not seem to be honoring the top value when I attempted to use this - it behaves like the all value...
0 Kudos