Select to view content in your preferred language

Identify Widget Question

4017
59
05-20-2011 11:38 AM
TomSedlacek
Regular Contributor
This question pertians to Robert Scheitlins' Identify Widget 2.3.1.
I have added the widget to my web app and it's exactly what I'm looking for.  HOWEVER, it only seems to identify those layers that are a part of my basemap.  I've modified the "onlythese" code in the compiled version six ways from Sunday and it will not id any of the layers in my 'operational layers'.

Any ideas anyone?  Robert?

Thanks!

Tom Sedlacek GISP
Engineering Tech / GIS
Clark Regional Wastewater District
360-993-8811
Email: TSedlacek@CRWWD.com
Tags (2)
0 Kudos
59 Replies
RhettZufelt
MVP Notable Contributor
yes, if you add the services to flex using localhost, the viewer will only work from the "localhost" computer.

Try adding with the FQDN and it should work.

R_
0 Kudos
CaseyMcMillin
Emerging Contributor
Is it possible to return fields from a related table in the identify widget?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Casey,

   No related data is not supported in this widget
0 Kudos
CaseyMcMillin
Emerging Contributor
Thanks for the reply Robert.  I have hyperlink data in tables related to several of my feature classes.  What are my options for opening those hyperlinks in Flex?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   An updated version is now available:

* 3.3.2 - Fixed issue where user was presented with login dialog even though token was provided in main config.xml
    - Added circle and ellipse tools
    - Applied workaround for ArcGIS Server 10 services sometimes not returning identify results in requested map projection.
0 Kudos
dustinlandry
New Contributor
hi robert i am trying to use the new identify widget 3.3 version and i cant get it to work with my sercure service here is the xml code

<?xml version="1.0"?>
<configuration>
<identifylayeroption>visible</identifylayeroption>
<identifytolerance>5</identifytolerance>
<defaultzoomscale>5000</defaultzoomscale>
<keepidentifyactive>true</keepidentifyactive>
<returngeometryforzoom>true</returngeometryforzoom>
<enablelineselect>true</enablelineselect>
<enableextentselect>true</enableextentselect>
<enablepolyselect>true</enablepolyselect>
<enablemouseovergraphicsinfo>false</enablemouseovergraphicsinfo>
<enablemouseoverrecordinfo>false</enablemouseoverrecordinfo>
<enablegraphicclickinfo>false</enablegraphicclickinfo>
<usemaptime>false</usemaptime>
<infoautoclosemilliseconds>2000</infoautoclosemilliseconds><!-- 2 seconds -->
<autoactivatedtool>mappoint</autoactivatedtool><!-- possible values are extent or polygon or mappoint or polyline or nothing -->
<excludebasemaps>true</excludebasemaps>
<disablepopuplinks>false</disablepopuplinks>
<disablelayerdropdown>false</disablelayerdropdown>
<disablealllayerschoice>false</disablealllayerschoice>
<replacenullswithemptystring>true</replacenullswithemptystring>
<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>
  <removeresultmessage>Remove Result</removeresultmessage>
  <idfrom>Identify From</idfrom>
  <noresultsfoundlabel>No Results Found</noresultsfoundlabel>
  <resultsfoundlabel>Results Found</resultsfoundlabel>
  <alllayers>All Layers</alllayers>
  <layersremaining>layers remaining:</layersremaining>
</labels>
<useproxy>
     <proxymapservice label="WILDHORSE_POLK_COUNTY"/>
</useproxy>
<layers onlythese="true">
  <layer>
   <name>LEASEHOLD</name>
   <id>10</id>
   <url>https://www.segland.com/ArcGIS/rest/services/WILDHORSE_POLK_COUNTY/MapServer/10/?token=AZjKCColLtfGW.....</url>
   <fields>
    <field name="TRACTNUM"/>
    <field name="Verified"/>
    <field name="Depth"/>
    <field name="Acres"/>
    <field name="Wildhorse"
           alias="Wildhorse Percentage"/>
    <field name="Unit_Name"
           alias="Unit Name"/>
   </fields>
   <links>
    <link includeinresults="false"
       field=""
       alias=""
       tooltip="">
     <linkprefix/>
     <linksuffix/>
     <iconfield/>
     <iconprefix/>
     <iconsuffix/>
    </link>
   </links>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <excludelayer url="http://segland.com/ArcGIS/rest/services/WILDHORSE_POLK_COUNTY/MapServer/0"
       id="0"/>
  <excludelayer url="http://segland.com/ArcGIS/rest/services/WILDHORSE_POLK_COUNTY/MapServer/9"
       id="9"/>
  <!-- <excludelayer url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/M..." id="2"/> -->
</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
RobertScheitlin__GISP
MVP Emeritus
Dustin,

   First you will want to update to 3.3.2.

   You have a couple of issues with your configuration.

<url>https://www.segland.com/ArcGIS/rest/services/WILDHORSE_POLK_COUNTY/MapServer/10/?token=AZjKCColLtfGWdUPGHI6dCxCzMREpfPjW_VM108WJA2JeGe0kJjqeIzo9GQa6zIw0TrPn2h9TLinlqHwYiX98w..</url>


Is this layer specified in your map and did you provide the token attribute for the layer in your Main config.xml?
if you did and you are using 3.3.2 then your url tag should just be this:
<url>https://www.segland.com/ArcGIS/rest/services/WILDHORSE_POLK_COUNTY/MapServer</url>


Your exclude layers are a little out of wack too.

<excludelayer url="http://segland.com/ArcGIS/rest/services/WILDHORSE_POLK_COUNTY/MapServer/0"
       id="0"/>
  <excludelayer url="http://segland.com/ArcGIS/rest/services/WILDHORSE_POLK_COUNTY/MapServer/9"
       id="9"/>
  <!-- <excludelayer  url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/MapServer"  id="2"/> -->


Notice in my commented out example of how to exclude a layer the url attribute should not contain the layer id. So yours should look like this:

<excludelayer url="http://segland.com/ArcGIS/rest/services/WILDHORSE_POLK_COUNTY/MapServer"
       id="0"/>
  <excludelayer url="http://segland.com/ArcGIS/rest/services/WILDHORSE_POLK_COUNTY/MapServer"
       id="9"/>
  <!-- <excludelayer  url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/MapServer"  id="2"/> -->
0 Kudos
EricVenden
Frequent Contributor
Good afternoon Robert,

The 3.3.2 Identify widget has "Added circle and ellipse tools"  - I updated the widget and do not see these tools.  I also checked the xml config and do not see a reference to these tools there.

What am I missing?

Thanks for your time.
Eric V
Gurnee, IL

All,

   An updated version is now available:

* 3.3.2 - Fixed issue where user was presented with login dialog even though token was provided in main config.xml
    - Added circle and ellipse tools
    - Applied workaround for ArcGIS Server 10 services sometimes not returning identify results in requested map projection.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Eric,

   The code is there to support them, I just forgot to update the xml.

<enablecircleselect>true</enablecircleselect>
    <enableellipseselect>true</enableellipseselect>
0 Kudos
EricVenden
Frequent Contributor
Thanks Robert...that did it

Eric,

   The code is there to support them, I just forgot to update the xml.

<enablecircleselect>true</enablecircleselect>
    <enableellipseselect>true</enableellipseselect>
0 Kudos