ARCIMS 添加图层问题
我要做一个动态添加图层功能 该图层没有写入配置AXL中
我是这样写的,但是刷新后这个图层并不显示,但是打印xml响应的时候是有这段的
WORKSPACES 用户名密码什么都没问题 图层信息什么也没有写错(直接从axl里面考来的 -_-|||b)
function addShell(){
var theString = '';
theString += '<WORKSPACES>\n';
theString += ' <SDEWORKSPACE name="sde_ws-2" server="192.168.168.88" instance="port:5151" database="" user="sde" encrypted="true" password="EPYCJM" geoindexdir="C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\" />\n';
theString += '</WORKSPACES>\n';
theString += '<LAYER type="featureclass" name="shelllayer" visible="true" id="65">\n';
theString += '<DATASET name="BASIC_EDITOR.GNQ" type="polygon" workspace="sde_ws-2" />\n';
theString += ' <SIMPLERENDERER>\n';
theString += ' <SIMPLEPOLYGONSYMBOL boundarytransparency="1.0" filltransparency="1.0" fillcolor="127,27,27" boundarycaptype="round" />\n';
theString += ' </SIMPLERENDERER>\n';
theString += ' </LAYER>\n';
return theString;
}
既不报错 也不显示 实在是很困扰