Identify Widget Question

1956
59
05-20-2011 11:38 AM
TomSedlacek
New Contributor III
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
RobertScheitlin__GISP
MVP Emeritus
Tom,

   That is strange... What does your IdentifyWidget.xml look like?
0 Kudos
TomSedlacek
New Contributor III
Hi Robert,

Here is my .xml.  It's pretty bare bones.  The layer that works is 'Taxlots' and it is in my basemap service.  The other, 'Mainline_Structures'  is in my active layer service and is the one that can't be ID'd.  Thanks for your input.

Tom

<?xml version="1.0" ?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
    // Version 2.3.1 - May. 3, 2011
    //
    ///////////////////////////////////////////////////////////////////////////////
-->
<configuration>
<betareturngeometryfix>false</betareturngeometryfix>
<identifylayeroption>visible</identifylayeroption>
<identifytolerance>5</identifytolerance>
<defaultzoomscale>5000</defaultzoomscale>
<keepidentifyactive>false</keepidentifyactive>
<returngeometryforzoom>true</returngeometryforzoom>
<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>Mainline_Structures</name>
   <fields>Rim_Elev,High_Inv,Low_Inv,MH_Number</fields>
   <linkfield></linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>


  <layer>
   <name>Taxlots</name>
   <fields>ASSR_SN,STADDRS</fields>
   <linkfield></linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <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
RobertScheitlin__GISP
MVP Emeritus
Tom,

   So Mainline_Structures is the name of the layer exactly as it appears in your REST services directory right?
0 Kudos
TomSedlacek
New Contributor III
Robert,

Absolutely.  Also, I have tried adding all of the other layers in that particular service with no luck.

Tom S.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Tom,

   Only thing I can suggest is what I would do to narrow the issue down.

1. <identifylayeroption>all</identifylayeroption>
2. <layers onlythese="false">

and see if the layer can be identified.
Also check the that identify is an option at the bottom of the REST Service directory page for that particular layer.
0 Kudos
TomSedlacek
New Contributor III
Robert,

Thanks for the suggestions, but no luck.  Something must be going on with my active service.  I'll try rebuilding and publishing and see if that works.

Thanks for help!

Tom
0 Kudos
JORGELAGOS2
New Contributor
Hello,

This is a question regarding Mr. Robert Rscheitlin Identify version 3.0.

It seems there are two places to instruct the software which layers identify from Thus, we are instructing with identifylayeroption = visible to identify All visible layers ONLY. Also, with <layers onlythese="false"> we are instructing it that  all mapservices and layers in the map will be identified right?

Isn�??t somehow conflicting?

thanks

Jorge

The identifylayeroption specifies which method to use when using Identify.
�?� "top": Only the topmost visible layer is identified (for the whole map, not each map
service as in previous versions).
�?� "visible": All visible layers are identified.
�?� "all": All layers are identified, even if they are not visible.


Layers:
<layers onlythese="false">
The only these attribute is either true or false and if true then only the listed layers will be identified and
if false all mapservices and layers in the map will be identified.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jorge,

we are instructing it that  all mapservices and layers in the map will be identified right?
No, if the identifylayeroption is set to visible then only the layers that are visible will be identified. So if you have the identifylayeroption set to all and the onlythese set to true than you will only get results that match the layers in the layer list. So there is no conflicting or duplication of these two parameters.
0 Kudos
JORGELAGOS2
New Contributor
Jorge,

No, if the identifylayeroption is set to visible then only the layers that are visible will be identified. So if you have the identifylayeroption set to all and the onlythese set to true than you will only get results that match the layers in the layer list. So there is no conflicting or duplication of these two parameters.


But we have the <layers onlythese="false"> and  the identifylayeroption = visible

Could you explain to me what will happen in our scenario?

Thanks

jorge
0 Kudos