📄 gisviewer3.htc
字号:
}
}
/////////////*****图例操作*********/////////////////////////////////////
function showLegendWin(){//显示图例
var strLegendXML;
var objResponseXML;
var objLegendImg,objChildNode;
strLegendXML = '<?xml version="1.0" encoding="gb2312"?><ARCXML version="1.1"><REQUEST><GET_IMAGE><PROPERTIES>';
//strLegendXML = strLegendXML + '<LEGEND title="Legend" font="Arial" width="' + objDialogWinInnerDiv.style.pixelWidth + '" height="' + objDialogWinInnerDiv.style.pixelHeight + '" autoextend="true" backgroundcolor="255,255,255"/><DRAW map="false"/></PROPERTIES>';
strLegendXML = strLegendXML + '<LEGEND title="Legend" font="Arial" autoextend="false" height="500" backgroundcolor="255,255,255"/><DRAW map="false"/></PROPERTIES>';
strLegendXML = strLegendXML + '</GET_IMAGE></REQUEST></ARCXML>';
//2.发送请求
objResponseXML = post(strLegendXML,imsURL);
//3.解析请求
objLegendImg = this.document.createElement("<img class='legend_img'>");
objLegendImg.src = getLegendURL(objResponseXML);
objDialogWinInnerDiv.innerHTML = "";
objLegendImg = objDialogWinInnerDiv.insertAdjacentElement("beforeEnd",objLegendImg);
objLegendImg.onreadystatechange = showLegendWin2;
}
function showLegendWin2(){//接上
var objLegendImg;
objLegendImg = objDialogWinInnerDiv.lastChild;
if(objLegendImg.readyState != "complete") return(-1);
objLegendImg.style.pixelLeft = objDialogWinInnerDiv.style.pixelLeft;
objLegendImg.style.pixelTop = objDialogWinInnerDiv.style.pixelTop;
//4.重新设置objDialogWinInnerDiv的显示属性
with(objDialogWinInnerDiv){
style.pixelWidth = objDialogWinInnerDiv.lastChild.width;
style.pixelHeight = objDialogWinInnerDiv.lastChild.height;
}
//5.重新设置浮动框的显示属性
with(objDialogWinPlaneDiv){
style.pixelWidth = objDialogWinInnerDiv.offsetWidth + 2;
style.pixelHeight = objDialogWinInnerDiv.offsetHeight + objDialogWinTitleDiv.offsetHeight - 2;
style.pixelLeft = objMapDiv.offsetWidth - objDialogWinInnerDiv.offsetWidth - 5;
style.pixelTop = 0;
}
objDialogWinTitleDiv.style.pixelWidth = objDialogWinInnerDiv.offsetWidth - objDialogWinTitleCloseButtonDiv.offsetWidth + 2;
objDialogWinTitleCloseButtonDiv.style.pixelLeft = objDialogWinTitleDiv.style.pixelWidth - 1;
objDialogWinPlaneDiv.style.visibility = "visible";
}
function getLegendURL(argXML){ //取得图例 图片的 URL
var objDocXML,legendURL;
objDocXML = argXML;
if(objDocXML){ //取得,<LEGEND> 元素的 url 属性值
if(objDocXML.selectSingleNode("//LEGEND")){
legendURL = objDocXML.selectSingleNode("//LEGEND").getAttribute("url");
}
}
return legendURL; // url 属性值
}
function controllMapTargetFindWinShow(){//控制地图查询窗口显示的函数
// boolMapFindInputWin
//1.控制地图查询窗口的显示
if(objDialogWinPlaneDiv.style.visibility == "hidden"){ //地图查询窗口还没创建
boolLegendVisible = false; //标记显示图例
boolLayerListVisible = false; //标记显示图层列表
boolMapFindInputWin = true; //标记地图查询窗口的显示
boolMapSettingWin = false;
boolSingleDiseaseAreaTimeWin = false;
boolDiseaseShunweiWin = false;
showMapTagetFindWin(); //显示地图查询窗口
}else if(objDialogWinPlaneDiv.style.visibility == "visible" && (boolLayerListVisible || boolLegendVisible || boolMapSettingWin || boolSingleDiseaseAreaTimeWin || boolDiseaseShunweiWin)){//图例已显示
boolLegendVisible = false; //标记显示图例
boolLayerListVisible = false; //标记显示图层列表没显示
boolMapFindInputWin = true; //标记地图查询窗口的显示
boolMapSettingWin = false;
boolSingleDiseaseAreaTimeWin = false;
boolDiseaseShunweiWin = false;
objDialogWinInnerDiv.innerHTML = ""; //清空浮动框内容
objDialogWinPlaneDiv.style.visibility = "visible"; //显示浮动框
showMapTagetFindWin(); //显示地图查询窗口
}else if(objDialogWinPlaneDiv.style.visibility == "visible" && boolMapFindInputWin){
boolLegendVisible = false;
boolLayerListVisible = false;
boolMapFindInputWin = false;
boolMapSettingWin = false;
boolSingleDiseaseAreaTimeWin = false;
boolDiseaseShunweiWin = false;
objDialogWinInnerDiv.innerHTML = "";
objDialogWinPlaneDiv.style.visibility = "hidden";
}
}
function controllSettingWinShow(){
//1.控制图层列表的显示
if(objDialogWinPlaneDiv.style.visibility == "hidden"){ //如果没有任何显示
boolLayerListVisible = false; //标记图层列表显示
boolLegendVisible = false; //标记图例没显示
boolMapFindInputWin = false;
boolMapSettingWin = true;
boolSingleDiseaseAreaTimeWin = false;
boolDiseaseShunweiWin = false;
objDialogWinInnerDiv.innerHTML = "";
objDialogWinPlaneDiv.style.visibility = "visible"; //浮动窗口显示
showSettingWin(); //图层列表显示
}else if(objDialogWinPlaneDiv.style.visibility == "visible" && boolMapSettingWin){//如果显示的是图层列表
boolLayerListVisible = false; //标记图层列表没显示
boolLegendVisible = false; //标记图例没显示
boolMapFindInputWin = false;
boolMapSettingWin = false;
boolSingleDiseaseAreaTimeWin = false;
boolDiseaseShunweiWin = false;
objDialogWinInnerDiv.innerHTML = ""; //清空内容
objDialogWinPlaneDiv.style.visibility = "hidden"; //隐藏浮动窗口
}else if(objDialogWinPlaneDiv.style.visibility == "visible" && (boolLegendVisible || boolMapFindInputWin || boolLayerListVisible || boolSingleDiseaseAreaTimeWin || boolDiseaseShunweiWin)){ //如果显示的是图例
boolLayerListVisible = false; //标记图层列表显示
boolLegendVisible = false;
boolMapFindInputWin = false;
boolMapSettingWin = true;
boolSingleDiseaseAreaTimeWin = false;
boolDiseaseShunweiWin = false;
objDialogWinPlaneDiv.style.visibility = "visible"; //显示浮动框
objDialogWinInnerDiv.innerHTML = ""; //清空浮动框内容
showSettingWin(); //显示图层列表
}
}
function controlSingleDieaseAreaTimeWinShow(){//控制单病种::区域时间对比窗口的显示
//1.控制图层列表的显示
if(objDialogWinPlaneDiv.style.visibility == "hidden"){ //如果没有任何显示
boolLayerListVisible = false; //标记图层列表显示
boolLegendVisible = false; //标记图例没显示
boolMapFindInputWin = false;
boolMapSettingWin = false;
boolSingleDiseaseAreaTimeWin = true;
boolDiseaseShunweiWin = false;
objDialogWinPlaneDiv.style.visibility = "visible"; //浮动窗口显示
showSingleDiseaseAreaTimeWin(); //图层列表显示
}else if(objDialogWinPlaneDiv.style.visibility == "visible" && boolSingleDiseaseAreaTimeWin){//如果显示的是单病种窗口
boolLayerListVisible = false; //标记图层列表没显示
boolLegendVisible = false; //标记图例没显示
boolMapFindInputWin = false;
boolMapSettingWin = false;
boolSingleDiseaseAreaTimeWin = false;
boolDiseaseShunweiWin = false;
objDialogWinInnerDiv.innerHTML = ""; //清空内容
objDialogWinPlaneDiv.style.visibility = "hidden"; //隐藏浮动窗口
}else if(objDialogWinPlaneDiv.style.visibility == "visible" && (boolLegendVisible || boolMapFindInputWin || boolMapSettingWin || boolLayerListVisible || boolDiseaseShunweiWin)){ //如果显示的是图例
boolLayerListVisible = false; //标记图层列表显示
boolLegendVisible = false;
boolMapFindInputWin = false;
boolMapSettingWin = false;
boolSingleDiseaseAreaTimeWin = true;
boolDiseaseShunweiWin = false;
objDialogWinPlaneDiv.style.visibility = "visible"; //显示浮动框
objDialogWinInnerDiv.innerHTML = ""; //清空浮动框内容
showSingleDiseaseAreaTimeWin(); //显示图层列表
}
}
//////////hzh 2004-11-20 add/////////////
function controlDieaseShunweiWinShow(){//控制疾病顺位
//1.控制图层列表的显示
if(objDialogWinPlaneDiv.style.visibility == "hidden"){ //如果没有任何显示
boolLayerListVisible = false; //标记图层列表显示
boolLegendVisible = false; //标记图例没显示
boolMapFindInputWin = false;
boolMapSettingWin = false;
boolSingleDiseaseAreaTimeWin = false;
boolDiseaseShunweiWin = true;
objDialogWinPlaneDiv.style.visibility = "visible"; //浮动窗口显示
showDiseaseShunweiWin(); //图层列表显示
}else if(objDialogWinPlaneDiv.style.visibility == "visible" && boolDiseaseShunweiWin){//如果显示的是疾病顺位
boolLayerListVisible = false; //标记图层列表没显示
boolLegendVisible = false; //标记图例没显示
boolMapFindInputWin = false;
boolMapSettingWin = false;
boolSingleDiseaseAreaTimeWin = false;
boolDiseaseShunweiWin = false;
objDialogWinInnerDiv.innerHTML = ""; //清空内容
objDialogWinPlaneDiv.style.visibility = "hidden"; //隐藏浮动窗口
}else if(objDialogWinPlaneDiv.style.visibility == "visible" && (boolLegendVisible || boolMapFindInputWin || boolMapSettingWin || boolLayerListVisible || boolSingleDiseaseAreaTimeWin)){ //如果显示的是图例
boolLayerListVisible = false; //标记图层列表显示
boolLegendVisible = false;
boolMapFindInputWin = false;
boolMapSettingWin = false;
boolSingleDiseaseAreaTimeWin = false;
boolDiseaseShunweiWin = true;
objDialogWinPlaneDiv.style.visibility = "visible"; //显示浮动框
objDialogWinInnerDiv.innerHTML = ""; //清空浮动框内容
showDiseaseShunweiWin(); //显示图层列表
}
}
//////////////////////////////
function controlLayerListShow(){//控制图层列表的显示
//1.控制图层列表的显示
if(objDialogWinPlaneDiv.style.visibility == "hidden"){ //如果没有任何显示
boolLayerListVisible = true; //标记图层列表显示
boolLegendVisible = false; //标记图例没显示
boolMapFindInputWin = false;
boolMapSettingWin = false;
boolSingleDiseaseAreaTimeWin = false;
boolDiseaseShunweiWin = false;
objDialogWinPlaneDiv.style.visibility = "visible"; //浮动窗口显示
showLayerListWin(); //图层列表显示
}else if(objDialogWinPlaneDiv.style.visibility == "visible" && boolLayerListVisible){//如果显示的是图层列表
boolLayerListVisible = false; //标记图层列表没显示
boolLegendVisible = false; //标记图例没显示
boolMapFindInputWin = false;
boolMapSettingWin = false;
boolSingleDiseaseAreaTimeWin = false;
boolDiseaseShunweiWin = false;
objDialogWinInnerDiv.innerHTML = ""; //清空内容
objDialogWinPlaneDiv.style.visibility = "hidden"; //隐藏浮动窗口
}else if(objDialogWinPlaneDiv.style.visibility == "visible" && (boolLegendVisible || boolMapFindInputWin || boolMapSettingWin || boolSingleDiseaseAreaTimeWin || boolDiseaseShunweiWin)){ //如果显示的是图例
boolLayerListVisible = true; //标记图层列表显示
boolLegendVisible = false;
boolMapFindInputWin = false;
boolMapSettingWin = false;
boolSingleDiseaseAreaTimeWin = false;
boolDiseaseShunweiWin = false;
objDialogWinPlaneDiv.style.visibility = "visible"; //显示浮动框
objDialogWinInnerDiv.innerHTML = ""; //清空浮动框内容
showLayerListWin(); //显示图层列表
}
}
function controllLegendShow(){ //控制图例的显示
//1.控制图例的显示
if(objDialogWinPlaneDiv.style.visibility == "hidden"){ //图例还没创建
boolLegendVisible = true; //标记显示图例
boolLayerListVisible = false; //标记显示图层列表
boolMapSettingWin = false;
boolMapFindInputWin = false;
boolSingleDiseaseAreaTimeWin = false;
boolDiseaseShunweiWin = false;
showLegendWin(); //显示图例
}else if(objDialogWinPlaneDiv.style.vi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -