修改 viewerfiles文件夹下的ajaxmappane.templ
//修改此方法,主要为了能够选择临时层
function GetVisSelLayers()
{
if(visSelLayers != null)
return visSelLayers;
visSelLayers = "";
var lyrs = GetLayers(true, true);
for(var i=0; i < lyrs.length; i++)
{
if(i > 0)
visSelLayers += ",";
visSelLayers += lyrs[i].name;
}
if(visSelLayers !="")
{
visSelLayers= visSelLayers+","+'YBMapOfRoadColor'+","+"YBMapOfXLZHTB"+","+"YBMapOfXLZH"+","+"YSYB"+","+"YSYB_FX"+","+"YSYB_FWQ"+","+"YSYB_FWQ_FX"+","+"C100012"+",C100008,C000001";
}else
{
visSelLayers= 'YBMapOfRoadColor'+","+"YBMapOfXLZHTB"+","+"YBMapOfXLZH"+","+"YSYB"+","+"YSYB_FX"+","+"YSYB_FWQ"+","+"YSYB_FWQ_FX"+","+"C100012"+",C100008,C000001";
}
return visSelLayers;
}
function GetVisLayers()
{
if(visLayers != null)
return visLayers;
visLayers = "";
var lyrs = GetLayers(true, false);
for(var i=0; i < lyrs.length; i++)
{
if(i > 0)
visLayers += ",";
visLayers += lyrs[i].name;
}
//张克 鼠标经过图元 显示信息比较灵敏
if(visLayers!='')
{
visLayers=visLayers+','+'FLXX'+","+'YBMapOfRoadColor'+","+"YBMapOfXLZHTB"+","+"YBMapOfXLZH"+","+"C100012"+",C100008,C000001";
}else
{
visLayers='FLXX'+","+'YBMapOfRoadColor'+","+"YBMapOfXLZHTB"+","+"YBMapOfXLZH"+","+"C100012"+",C100008,C000001";
}
return visLayers;
}