Identify Widget - not seeing all layers

1170
14
01-06-2011 10:54 AM
WilliamBall1
New Contributor
I installed the Identify Widget today and having difficulty getting it to identify features of some layers.  It will identify some features in both base and operational layers, but not all.  For instance, whether "onlythese" property is true or false, the features in the Manholes layer below cannot be identified, whereas the Water Main Lines works as expected with the widget. Is there something about the way my services are configured that would create this behavior?

<layers onlythese="false">
  <layer>
   <name>Water Main Lines</name>
   <fields>MATERIAL,MAIN LINE SIZE,TYPE,JOINT TYPE,DATE INSTALLED,DEPTH,LOCATEWIRE,GROUND SURFACE,LOCATION DESCRIPTION,COMMENTS</fields>
   <linkfield></linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>Manholes</name>
   <fields>MANHOLE ID,MATERIAL,DEPTH,RIM ELEVATION,INVERT IN,INVERT OUT</fields>
   <linkfield></linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
</layers>

Thanks!

Bill Ball
Special Projects Manager
Fort Lewis college
Durango, CO
Tags (2)
0 Kudos
14 Replies
JasonNielsen
Occasional Contributor
I would double check the area highlighted in red below and make sure you have the layer name spelled exactly the same as it is in your REST directory. The path to it should be something similar to this: http://myserver/ArcGIS/rest/services/Myservice/

Also, you might try clearing your REST Cache to see if that helps. The path to that is similar to:
http://myserver/ArcGIS/rest/admin. Sometimes when you make a lot of changes to a service you need to clear the REST Cache to see the changes.


<layers onlythese="false">
<layer>
<name>Water Main Lines</name>
<fields>MATERIAL,MAIN LINE SIZE,TYPE,JOINT TYPE,DATE INSTALLED,DEPTH,LOCATEWIRE,GROUND SURFACE,LOCATION DESCRIPTION,COMMENTS</fields>
<linkfield></linkfield>
<linkprefix></linkprefix>
<linksuffix></linksuffix>
<iconfield></iconfield>
<iconprefix></iconprefix>
<iconsuffix></iconsuffix>
<zoomscale>15000</zoomscale>
<forcescale>true</forcescale>
</layer>
<layer>
<name>Manholes</name>
<fields>MANHOLE ID,MATERIAL,DEPTH,RIM ELEVATION,INVERT IN,INVERT OUT</fields>
<linkfield></linkfield>
<linkprefix></linkprefix>
<linksuffix></linksuffix>
<iconfield></iconfield>
<iconprefix></iconprefix>
<iconsuffix></iconsuffix>
<zoomscale>15000</zoomscale>
<forcescale>true</forcescale>
</layer>
</layers>

0 Kudos
RobertScheitlin__GISP
MVP Emeritus
William,

   I will jump in and help if what Jason suggests does not resolve your issue. Jason's suggestion is right on the money for most peoples issues though.
0 Kudos
WilliamBall1
New Contributor
Thanks jwmielsen!  And thanks Robert for these great widgets (I'm also using eSearch which is working very well). You were right about Manholes--should have been Manhole, duh.  However, now Manhole works but "Sewer Main Line" and "Water Main Lines" (yes, one is plural and the other singular) don't (and "Water Main Lines" was working yesterday when I posted this).  I have carefully checked spelling for fields in the .xml to make sure it corresponds with the REST Services pages and cleared the REST cache. 

There are actually some other layers that I would like to be able to identify, eg,hydrants and water valves, but when I have "onlythese=false" things like roads, parcels and structures show up but not Water Main Lines, Sewer Main Line, Hydrant or Water Main Valve.  All of the problematic layers are operational layers and Manhole is an operational layer that does work.  All base layers are identifiable.
Here's the current code and thanks again in advance:
<layers onlythese="true">
  <layer>
   <name>Water Main Lines</name>
   <fields>MATERIAL,LINE SIZE,LENGTH,TYPE,JOINT TYPE,DATE INSTALLED,DEPTH,LOCATEWIRE,GROUND SURFACE,LOCATION DESCRIPTION,COMMENTS</fields>
   <linkfield></linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>Manhole</name>
   <fields>MANHOLE ID,MATERIAL,DEPTH,RIM ELEVATION,INVERT IN,INVERT OUT</fields>
   <linkfield></linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>Sewer Main Line</name>
   <fields>LINE SIZE,MATERIAL,LENGTH,SLOPE,GROUND SURFACE,LOCATION DESCRIPTION,TYPE,DATE INSTALLED,COMMENTS</fields>
   <linkfield></linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>12000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Bill,

   I will need to see your main config.xml.
0 Kudos
WilliamBall1
New Contributor
Thanks, Robert.  Here's the config.xml:

<?xml version="1.0" ?>
<!--Silverton
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2010 ESRI
//
// All rights reserved under the copyright laws of the United States.
// You may freely redistribute and use this software, with or
// without modification, provided you include the original copyright
// and use restrictions.  See use restrictions in the file:
// <install location>/License.txt
//
// Read more about ArcGIS Viewer for Flex 2.2 - http://links.esri.com/flexviewer
//
////////////////////////////////////////////////////////////////////////////////
-->
<configuration>
    <title>Town of Silverton Web Mapping Application</title>
    <subtitle></subtitle>
    <!--<logo>assets/images/i_solar.png</logo>-->
<style>
    <colors>0xFFFFFF,0x777777,0x555555,0x333333,0xFFFFFF</colors>
</style>

    <!-- UI elements -->
    <widget left="10"  top="50"    config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
    <widget right="-2" bottom="-2" config="widgets/OverviewMap/OverviewMapWidget.xml"

url="widgets/OverviewMap/OverviewMapWidget.swf"/>
    <widget right="20" top="55"    config="widgets/MapSwitcher/MapSwitcherWidget.xml"

url="widgets/MapSwitcher/MapSwitcherWidget.swf"/>
    <widget left="0"   top="0"     config="widgets/HeaderController/HeaderControllerWidget.xml"

url="widgets/HeaderController/HeaderControllerWidget.swf"/>

<map initialextent="2367702.72512341 1417838.67215241 2381535.2250659 1430240.22382498" top="40">

<basemaps>
<layer label="Aerial"  type="dynamic" visible="false" alpha="1"
         url="http://cmsv0263csw-a11/ArcGIS/rest/services/Silverton_aerial/MapServer"/>

<layer label="Streets"  type="dynamic" visible="true" alpha="1"
         url="http://cmsv0263csw-a11/ArcGIS/rest/services/Silverton_non_editable/MapServer"/>
</basemaps>
           
      
<operationallayers>
<layer label="Avalanche" type="feature" visible="false"
  url="http://cmsv0263csw-a11/ArcGIS/rest/services/Silverton_non_editable/MapServer/14/"/>

<layer label="Wells" type="feature" visible="false"
  url="http://cmsv0263csw-a11/ArcGIS/rest/services/Silverton_non_editable/MapServer/10/"/>

<layer label="Waste Rock" type="feature" visible="false"
  url="http://cmsv0263csw-a11/ArcGIS/rest/services/Silverton_non_editable/MapServer/11/"/>

<layer label="Springs and Seeps" type="feature" visible="false"
  url="http://cmsv0263csw-a11/ArcGIS/rest/services/Silverton_non_editable/MapServer/12/"/>

<layer label="Mine Discharge" type="feature" visible="false"
  url="http://cmsv0263csw-a11/ArcGIS/rest/services/Silverton_non_editable/MapServer/13/"/>

<layer label="Water Valves" type="feature" visible="true"
   url="http://cmsv0263csw-a11.fortlewis.edu/ArcGIS/rest/services/Silverton_editable/FeatureServer/1/"/>

<layer label="Hydrants" type="feature" visible="true"
  url="http://cmsv0263csw-a11.fortlewis.edu/ArcGIS/rest/services/Silverton_editable/FeatureServer/2/"/>

<layer label="Water Main Lines" type="feature" visible="true"
  url="http://cmsv0263csw-a11.fortlewis.edu/ArcGIS/rest/services/Silverton_editable/FeatureServer/3/"/>

<layer label="Manholes" type="feature" visible="true"
  url="http://cmsv0263csw-a11.fortlewis.edu/ArcGIS/rest/services/Silverton_editable/FeatureServer/5"/>

<layer label="Sewer Main Lines" type="feature" visible="true"
  url="http://cmsv0263csw-a11.fortlewis.edu/ArcGIS/rest/services/Silverton_editable/FeatureServer/6/"/>

<layer label="Lift Stations" type="feature" visible="true"
  url="http://cmsv0263csw-a11.fortlewis.edu/ArcGIS/rest/services/Silverton_editable/FeatureServer/7/"/>

<layer label="Sewer Ponds" type="feature" visible="true"
  url="http://cmsv0263csw-a11.fortlewis.edu/ArcGIS/rest/services/Silverton_editable/FeatureServer/8/"/>

</operationallayers>

</map>

    <!-- widgets organized into widget containers that manage close/open etc -->
    <!-- supported layout property options: horizontal(default)|float|vertical|fix-->
    <widgetcontainer layout="float">
        <widget label="Bookmarks" left="430" top="90"
                icon="assets/images/i_bookmark.png"
                config="widgets/Bookmark/BookmarkWidget.xml"
                url="widgets/Bookmark/BookmarkWidget.swf"/>
        <widget label="Edit"   left="100" top="90"
                icon="assets/images/i_edit.png"
                config="widgets/Edit/EditWidget.xml"
                url="widgets/Edit/EditWidget.swf"/>
        <widget label="Draw and Measure" left="60" top="400"
                icon="assets/images/i_draw2.png"
                config="widgets/Draw/DrawWidget.xml"
                url="widgets/Draw/DrawWidget.swf"/>
        <widget label="Print" left="390" top="400"
                icon="assets/images/i_print.png"
                config="widgets/Print/PrintWidget.xml"
                url="widgets/Print/PrintWidget.swf"/>
<widget label="Legend" left="750" top="300"
                icon="assets/images/Legend32.png"
                config="widgets/Legend/LegendWidget.xml"
                url="widgets/Legend/LegendWidget.swf"/>
<widget label="Identify" left="390" top="400"
                icon="assets/images/i_info.png"
                config="widgets/Identify/IdentifyWidget.xml"
                url="widgets/Identify/IdentifyWidget.swf"/>
<widget label="Search" left="390" top="400"
                icon="assets/images/i_search.png"
                config="widgets/eSearch/SearchWidget.xml"
                url="widgets/eSearch/SearchWidget.swf"/>


</widgetcontainer>

</configuration>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Bill,

   OK, I found the issue.

This one works:
<layer label="Manholes" type="feature" visible="true"
url="http://cmsv0263csw-a11.fortlewis.edu/ArcGIS/rest/services/Silverton_editable/FeatureServer/5"/>


This one does not:
<layer label="Sewer Main Lines" type="feature" visible="true"
url="http://cmsv0263csw-a11.fortlewis.edu/ArcGIS/rest/services/Silverton_editable/FeatureServer/6/"/>


If you look closely there is a difference between them. The second one has an extra slash in the url and this is an issue for my code as I have a portion of code that searches for the last slash and does something with that info. Remove all of your extra slashes from your config.xml clear your browser cache and thing should start working.
0 Kudos
WilliamBall1
New Contributor
Thanks so much, Robert.  That was it!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Bill,

   I think You might be the second person that ran into this issue so I will rework the code to handle this issue. Anyway that is a good thing to find these issues with the code when people do things I don't expect. I think you will like the functionality of the new (kind of Identify) infoTemplate I preview for every one here:

http://forums.arcgis.com/threads/20281-Preview-of-two-great-new-widgets-coming-out-mid-January-2011
0 Kudos
BartHound
New Contributor
Wow, amazing 1400 + posts, that is unbelievable, you have been so instrumental is assisting so many people it is truly remarkable.  You have been doing just a fantastic job helping all of us.  Thank you for your service.
0 Kudos