HOW TO
Instructions provided enable an ArcIMS 3.0 HTML Viewer to work with an ArcIMS 3.1 ImageServer MapService.
Please note that the resulting files are not equivalent to those created in ArcIMS 3.1 Designer. Among other differences, an HTML Viewer converted from ArcIMS 3.0 is not supported in the Netscape 6 browser.
Code:
var imsURL = 'http://machine/servlet/com.esri.esrimap.Esrimap?ServiceName=sf';
var imsOVURL = 'http://machine/servlet/com.esri.esrimap.Esrimap?ServiceName=sf';
Code:
if (navigator.appVersion.search("5.0") == -1)
Code:
if (parseFloat(navigator.appVersion)<5)
Code:
var NorthArrowCoords = "20 30";
Code:
var CopyrightCoords = "4 4";
Code:
var NorthArrowAngle = "0";
Warning:
Do not do both (A) and (B)!
Code:
<ARCXML VERSION="1.0.1">\n<REQUEST>\n<GET_IMAGE>\n<PROPERTIES>
Code:
<ARCXML VERSION="1.1">\n<REQUEST>\n<GET_IMAGE>\n<PROPERTIES>\n<ENVIRONMENT><SEPARATORS cs="," ts=","/></ENVIRONMENT>
Code:
theString += '<SCALEBAR coord="' + parseInt(iWidth * 0.60) + ',2" outline="' + ScaleBarBackColor + '" ';
Code:
theString += '<SCALEBAR coord="' + parseInt(iWidth * 0.60) + ', 2" outline="' + ScaleBarBackColor + '" ';
Warning:
Do not do this if you chose to do Step 6A.
Code:
theString += '<OBJECT units="DATABASE">\n<LINE coords="' + clickPointX[0] + "," + clickPointY[0];
Code:
theString += '<OBJECT units="DATABASE">\n<LINE coords="' + clickPointX[0] + " " + clickPointY[0];
Code:
theString += "," + clickPointX[i] + "," + clickPointY[i];
Code:
theString += ";" + clickPointX[i] + " " + clickPointY[i];
Code:
theString += '<OBJECT units="DATABASE">\n<POINT coord="' + clickPointX[i] + ',' + clickPointY[i] + '">\n';
Code:
theString += '<OBJECT units="DATABASE">\n<POINT coords="' + clickPointX[i] + ' ' + clickPointY[i] + '">\n';
Code:
theString += '<OBJECT units="DATABASE">\n<POINT coord="' + geocodeX + ',' + geocodeY + '">\n';
Code:
theString += '<OBJECT units="DATABASE">\n<POINT coord="' + geocodeX + ' ' + geocodeY + '">\n';
Code:
theString += '<OBJECT units="DATABASE">\n<TEXT coord="' + geocodeX + ',' + geocodeY + '" label="' + geocodeLabel + '">\n';
Code:
theString += '<OBJECT units="DATABASE">\n<TEXT coord="' + geocodeX + ' ' + geocodeY + '" label="' + geocodeLabel + '">\n';
Code:
theString += "," + clickPointX[i] + "," + clickPointY[i];
Code:
theString += ";" + clickPointX[i] + " " + clickPointY[i];
Code:
theString += '<OBJECT units="DATABASE">\n<LINE coords="' + clickPointX[0] + "," + clickPointY[0];
Code:
theString += '<OBJECT units="DATABASE">\n<LINE coords="' + clickPointX[0] + " " + clickPointY[0];
Code:
theString += '<OBJECT units="DATABASE">\n<POINT coord="' + clickPointX[i] + ',' + clickPointY[i] + '">\n';
Code:
theString += '<OBJECT units="DATABASE">\n<POINT coords="' + clickPointX[i] + ' ' + clickPointY[i] + '">\n';
Code:
theString += '<SCALEBAR coord="' + parseInt(iWidth * 0.60) + ',2" outline="' + ScaleBarBackColor + '" ';
Code:
theString += '<SCALEBAR coords="' + parseInt(iWidth * 0.60) + ' 2" outline="' + ScaleBarBackColor + '" ';
Code:
theString += '<OBJECT units="PIXEL">\n<TEXT coord="5,' + (iHeight-10) + '" label="' + modeBlurb + '">\n';
Code:
theString += '<OBJECT units="PIXEL">\n<TEXT coord="5 ' + (iHeight-10) + '" label="' + modeBlurb + '">\n';
Code:
theString += '<OBJECT units="DATABASE">\n<POINT coord="' + midX + ',' + midY + '">\n';
Code:
theString += '<OBJECT units="DATABASE">\n<POINT coord="' + midX + ' ' + midY + '">\n';
Code:
theString += '<OBJECT units="DATABASE">\n<LINE coords="' + left + ',' + bottom + ',' + left + ',' + top + ',';
theString += right + ',' + top + ',' + right + ',' + bottom + ',' + left + ',' + bottom + '">\n';
Code:
theString += '<OBJECT units="DATABASE">\n<LINE coords="' + left + ' ' + bottom + ';' + left + ' ' + top + ';';
theString += right + ' ' + top + ';' + right + ' ' + bottom + ';' + left + ' ' + bottom + '">\n';
Code:
<ARCXML VERSION="1.0.1">
Code:
<?xml version="1.0" encoding="UTF-8"?><ARCXML version="1.1">
Note:
In the above step, when searching for...
Code:
<ARCXML VERSION="1.0.1">
Code:
<?xml version="1.0" encoding="Cp1252"?>
Code:
selString +='<DATASET fromlayer="' + LayerName[ActiveLayerIndex] + '" />\n';
Code:
selString +='<DATASET fromlayer="' + LayerID[ActiveLayerIndex] + '" />\n';
Code:
buffString += '<DATASET fromlayer="' + LayerName[ActiveLayerIndex] + '" />\n';
Code:
buffString += '<DATASET fromlayer="' + LayerID[ActiveLayerIndex] + '" />\n';
Code:
startpos = theReply.indexOf("<QUERY where=",endpos);
startpos += 14;
endpos = theReply.indexOf(dQuote, startpos);
blurb = theReply.substring(startpos,endpos);
storedQueryString[storedQueryCount] = blurb;
startpos = theReply.indexOf("subfields=",endpos);
Code:
var sp2 = theReply.indexOf("<QUERY ",endpos);
sp2 += 7;
startpos = theReply.indexOf("where=",sp2);
startpos += 7;
endpos = theReply.indexOf(dQuote, startpos);
blurb = theReply.substring(startpos,endpos);
storedQueryString[storedQueryCount] = blurb;
startpos = theReply.indexOf("subfields=",sp2);
Article ID:000003862
Get help from ArcGIS experts
Download the Esri Support App