English

Error: AXLParser: acetate layer - 'coords' not found in POINT.

Error Message

When loading a customized HTML Viewer you may get an error message:

"AXLParser: acetate layer - 'coords' not found in POINT."

Cause

This is due to having uncommented sample code with incorrect syntax in the standard HTML Viewer to customize the site.

The javascript files aimsXML.js and aimsCustom.js files that come with the standard HTML Viewer and are located in your Web site location, such as C:\ArcIMS\website\<mysite>\javascript\, include lines of code with the syntax such as

Code:
<POINT coord="27 11"

According to the ArcXML reference guide, this syntax is invalid. The argument allowed for POINT or TEXT etc. is "coords", therefore the code should say

Code:
<POINT coords="27 11"

Solution or Workaround

Edit the javascript files for your Web site with the correct syntax. The files are located in your Web site directory, such as C:\ArcIMS\website\<mysite>\javascript\

  1. In a text editor such as Notepad, open aimsXML.js and replace the entries of 'coord=' with 'coords=', such as this line of code:

    Code:
    theString += '<OBJECT units="database">\n<POINT coord="'
    + forceOVComma(midX) + coordsDelimiter
    + forceOVComma(midY) + '">\n';

  2. In a text editor such as Notepad, open aimsCustom.js and replace the entries of 'coord=' with 'coords=', such as in the following functions:

    Code:
    // add custom stuff to Map XML request. . . between selection and geocode
    function addCustomToMap1(){
    var customString = "";
    /*
    customString += '<LAYER type="ACETATE" name="theMode">\n';
    customString += '<OBJECT units="PIXEL">\n<TEXT coord="5 '
    + (iHeight-10)
    + '" label="This is a test">\n';
    customString += '<TEXTMARKERSYMBOL fontstyle="BOLD" fontsize="12"
    font="ARIAL" fontcolor="'
    + modeMapColor + '" ';
    customString += 'threed="TRUE" glowing="'
    + modeMapGlow
    + '" />\n</TEXT>\n</OBJECT>';
    customString += '\n</LAYER>\n';
    */
    return customString;
    }
    and
    // add custom stuff to Map XML request. . . under modeOnMap
    function addCustomToMap3(){
    var customString = "";
    /*
    customString += '<LAYER type="ACETATE" name="theMode">\n';
    customString += '<OBJECT units="PIXEL">\n<TEXT coord="5 '
    + (iHeight-10)
    + '" label="This is a test">\n';
    customString += '<TEXTMARKERSYMBOL fontstyle="BOLD" fontsize="12"
    font="ARIAL" fontcolor="'
    + modeMapColor + '" ';
    customString += 'threed="TRUE" glowing="'
    + modeMapGlow
    + '" />\n</TEXT>\n</OBJECT>';
    customString += '\n</LAYER>\n';
    alert(customString);
    */
    return customString;
    }

  3. Search for other entries of 'coord=' in the javascript files and replace them with 'coords='.