Identify 3.1.1 not returning layer info when zoomed in

288
3
01-23-2013 08:19 AM
PeterHoffman
Occasional Contributor
Robert,

I have several layers that I am listing in the identifywidget.xml and one of them (Section Notes) does not display when I am zoomed in more that its visible scale range. I have set <identifylayeroption>all</identifylayeroption> and the results work when I am zoomed out to the visible range.
Why is this happening?
Thanks.

<?xml version="1.0" ?>
<configuration>
<identifylayeroption>all</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>
<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>
<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>
</labels>
<useproxy><!-- Enter the label of the MapService from the main config.xml -->
  <!--<proxymapservice label="Imagery" />
  <proxymapservice label="Streets" />-->
</useproxy>
<layers onlythese="true">
     <layer>
   <name>Parcels</name> 
   <fields all="false">
    <field name="PARCELID" alias="Parcel ID" />
    <field name="STREET" alias="Street" />
    <field name="MAIL_ZIP" alias="ZIP Code" />
    <field name="OwnerName" alias="Owner 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>Section Notes</name> 
   <fields all="false">
    <field name="NOTES" alias="Comments" />   
   </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>General</name>
   <fields all="false">
    <field name="HDREFNO" alias="HDREFNO" />
    <field name="WATERSUPPLY" alias="Water Supply" />
    <field name="SANITARYTYPE" alias="Sanitary Type" />
    <field name="APPLICANT" alias="Applicant" />
    <field name="COMMENTS" alias="Comments" /> 
   </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>
</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>
Tags (2)
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
Peter,

does not display when I am zoomed in more that its visible scale range
This is the designed behavior of the widget... If the layer is not visible why would you want results for it?
0 Kudos
PeterHoffman
Occasional Contributor
The layer is also used in one of 2 editing widgets and I do not want if in range when I am in the other editing widget. I am returning attributes from a field and I am zoomed in to the middle of a large polygon so you will not see the borders of the polygon. In your application you have the tag of <identifylayeroption> with the possibility of top, visible or all. It is not identifying even when I use the all option.
0 Kudos
PeterHoffman
Occasional Contributor
I ended up adding the layer in another map service and that works when I zoom in.
The first one was also a feature service and I did not want if visible at a certain scale.
0 Kudos