Select to view content in your preferred language

Identify Widget 3

528
2
10-30-2012 08:28 AM
EthanSnyder
Emerging Contributor
I keep getting this error message and I cant figure out why:

"A problem occurred while parsing the configuration file widgets/Identify/IdentifyWidget.xml
Error #1090"

Here is a portion of my config file for the widget:
 <layers onlythese="false>"
  <layer>
   <name>Sanitary Structure</name>
   <fields>
    <field alias="Type" name="TYPE"/>
    <field alias="Outlet Direction" name="OUTLET_DIR"/>
   </fields>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
 </layers>"


Can anyone help me with this issue.

Thanks!
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Ethan,

   Simply you have syntax issues you introduced into the xml:

You have:

    <layers onlythese="false>"
        <layer>
            <name>Sanitary Structure</name>
            <fields>
                <field alias="Type" name="TYPE"/>
                <field alias="Outlet Direction" name="OUTLET_DIR"/>
            </fields>
            <zoomscale>15000</zoomscale>
            <forcescale>true</forcescale>
        </layer>
    </layers>"


Correct syntax is:

    <layers onlythese="false">
        <layer>
            <name>Sanitary Structure</name>
            <fields>
                <field alias="Type" name="TYPE"/>
                <field alias="Outlet Direction" name="OUTLET_DIR"/>
            </fields>
            <zoomscale>15000</zoomscale>
            <forcescale>true</forcescale>
        </layer>
    </layers>


Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

0 Kudos
EthanSnyder
Emerging Contributor
Thanks, that got rid of the error message. Now when click on a feature, nothing happens could that be something wrong with the following xml.
<?xml version="1.0"?>
<configuration>
 <betareturngeometryfix>false</betareturngeometryfix>
 <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>true</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>
 <lables>
  <zoom2message>Click to Zoom to Point</zoom2message>
  <idenifylabel>Identify</idenifylabel>
  <resultslabel>Results</resultslabel>
  <descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel>
  <pointlabel>Identify by Point</pointlabel>
  <linelabel>Identify by Line</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>
 </lables>
 <useproxy>
  <!-- http://web3.adams-county.com/ArcGIS/rest/services/Sewage/MapServer/ -->
 </useproxy>
 <layers onlythese="false">
  <layer>
   <name>Sanitary Structure</name>
   <fields>
    <field alias="Type" name="TYPE"/>
    <field alias="Outlet Direction" name="OUTLET_DIR"/>
   </fields>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
 </layers>
 <symbols>
  <simplefillsymbol style="solid" alpha="0.4" color="0x44ccb">
   <outline alpha="0.8" color="0x448ccb" width="2"/>
  </simplefillsymbol>
  <simplemarkersymbol style="circle"alpha="0.8" color="0x448ccb" angle="0" yoffset="0" size="12">
   <outline style="solid" alpha="0.8" color="0xffffff" width="1"/>
  </simplemarkersymbol>
  <picturemarkersymbol width="30" yoffset="0" xoffset="0" height="30" url="assets/images/i_info.png"/>
  <simplelinesymbol alpha="0.8" color="0x448ccb" width="2"/>
 </symbols>
</configuration>
0 Kudos