📄 toc.htm
字号:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<HTML>
<HEAD>
<TITLE>LayerList</TITLE>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<STYLE TYPE="text/css">
a {text-decoration:none;}
</STYLE>
<SCRIPT LANGUAGE="Javascript">
var t;
var tName = "";
if (opener) {
if (opener.name=="MapFrame") {
t = opener.parent.MapFrame;
tName = "opener.parent.MapFrame.";
} else {
t = opener;
tName = "opener.";
}
} else {
if (parent.MapFrame!=null) {
t = parent.MapFrame;
tName = "parent.MapFrame.";
} else {
t=document;
}
}
function setActiveLayer(i) {
var theForm = document.forms[0];
t.ActiveLayer=t.LayerID[i];
t.ActiveLayerType=t.LayerType[i];
t.ActiveLayerIndex=i;
t.setActiveLayer(i);
var isOk = t.checkHyperLinkLayer(i);
if (t.toolMode==15) {
if (!isOk) {
t.currentHyperLinkLayer="";
t.currentHyperLinkField="";
t.currentHyperLinkPrefix="";
t.currentHyperLinkSuffix="";
alert(t.msgList[47]);
}
}
//alert(t.ActiveLayerIndex + "." + t.ActiveLayer);
}
function showLayerInfo(i) {
t.showLayerInfo(i);
}
// refresh map display with checked layers visible
function updateLayers() {
//alert(layerCount);
//alert(parent.TOCFrame.document.forms[0].LayerVisible.length);
var theForm = document.forms[0];
var j = 0;
if (theForm.LayerVisible.length>1) {
for (var i=0;i<theForm.LayerVisible.length;i++) {
j = theForm.LayerVisible[i].value;
if (theForm.LayerVisible[i].checked) {
t.LayerVisible[j] = 1;
}
else {
t.LayerVisible[j] = 0;
}
}
/*
} else {
if (theForm.LayerVisible.checked) {
j = theForm.LayerVisible.value;
t.LayerVisible[j] = 1;
}
else {
t.LayerVisible[j] = 0;
}
}
*/
} else {
j = theForm.LayerVisible.value;
if (theForm.LayerVisible.checked) {
t.LayerVisible[j] = 1;
} else {
t.LayerVisible[j] = 0;
}
}
t.sendMapXML();
}
// stop displaying the Layerlist
// only works in separate window
function closeIt() {
t.LayerListOpen=false;
window.close();
}
// startup function for separate window
function startUp() {
if (opener) {
t.LayerListOpen=true;
window.focus();
}
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="Silver" TEXT="Black" LEFTMARGIN=0 RIGHTMARGIN=0 LINK="Black" VLINK="Black" ALINK="Black" TOPMARGIN=0 onload="startUp()">
<FORM>
<CENTER>
<TABLE WIDTH="100%">
<TR>
<TD ALIGN="LEFT">
<FONT FACE="Arial" SIZE="-2"><B>
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
if (opener) {
document.writeln('<td align="CENTER">');
document.writeln('<font face="Arial" size="-2"><b>');
document.writeln('<INPUT TYPE="button" NAME="hideButton" VALUE="' + t.buttonList[42] + '" onClick="closeIt()">');
}
</SCRIPT>
</B></FONT>
</TD>
</TR>
</TABLE>
<HR WIDTH="75%">
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
document.writeln('<FONT FACE="Arial"><B>' + t.titleList[13] + '</B>');
document.writeln('<TABLE CELLSPACING="0" CELLPADDING="1" NOWRAP>');
document.writeln(' <TR>');
document.writeln(' <TD ALIGN="CENTER"><FONT FACE="Arial Narrow" SIZE="-3">' + t.titleList[14] + '</FONT></TD>');
document.writeln(' <TD ALIGN="CENTER"><FONT FACE="Arial Narrow" SIZE="-3">' + t.titleList[15] + '</FONT></TD>');
document.writeln(' <TD><FONT FACE="Arial Narrow" SIZE="-3"> </FONT></TD>');
document.writeln(' </TR>');
var theCount = t.layerCount;
//alert(theCount);
for (var i=0;i<theCount;i++) {
if ((!t.hideLayersFromList) || ((t.hideLayersFromList) && (!t.noListLayer[i]))) {
if ((t.listAllLayers) || ((t.mapScaleFactor>=t.LayerMinScale[i]) && (t.mapScaleFactor<=t.LayerMaxScale[i]))) {
document.writeln('<tr><td>');
document.write('<input type="Checkbox" name="LayerVisible" value="' + i + '"');
if (t.LayerVisible[i] == 1) document.write(' checked');
document.writeln(' ></td>');
document.write('<td>');
if (t.LayerIsFeature[i]) {
document.write('<input type="Radio" onclick="setActiveLayer(' + i + ')" name="Active"');
if (t.ActiveLayerIndex==i) document.write(' checked');
document.write('>');
} else {
document.write(' ');
}
document.writeln('</td>');
document.writeln('<td><font face="Arial" size="-1">' + t.LayerName[i] + '</font></td>');
if (t.displayLayerInfoButton) {
document.write('<td><INPUT TYPE="Button" NAME="InfoButton" VALUE="' + t.buttonList[43] + '" onclick="showLayerInfo(' + i + ')"></td>');
}
document.writeln('</tr>');
}
}
}
document.writeln('<TR>');
document.writeln(' <TD ALIGN="center" COLSPAN="3">');
document.writeln(' <HR WIDTH=90%>');
document.writeln(' <INPUT TYPE="button" NAME="refreshButton" VALUE="' + t.buttonList[44] + '" onClick="updateLayers()">');
document.writeln(' </TD>');
document.writeln('</TR>');
</SCRIPT>
</TABLE>
</FONT>
</CENTER>
</FORM>
</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE>Table of Contents</TITLE>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -