| | |
| | | <Content Include="html\layuiupdate\font\iconfont.ttf" /> |
| | | <Content Include="html\layuiupdate\font\iconfont.woff" /> |
| | | <Content Include="Ashx\DataQL.ashx" /> |
| | | <Content Include="fly\127.fly" /> |
| | | <Content Include="fly\128.fly" /> |
| | | <Content Include="fly\shp\前德门地块.CPG" /> |
| | | <Content Include="fly\shp\前德门地块.dbf" /> |
| | |
| | | } |
| | | </style> |
| | | <script> |
| | | var groupName = "16m数据"; // 16m数据,多期数据 |
| | | |
| | | function getQueryString(name) { |
| | | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); |
| | | var r = window.location.search.substring(1).match(reg); |
| | |
| | | } |
| | | |
| | | window.onload = function () { |
| | | initLayers(); |
| | | init(); |
| | | } |
| | | |
| | | function initLayers() { |
| | | function init() { |
| | | var groups = ["2m影像", "16m影像", "植被覆盖度"]; |
| | | var select = document.getElementById("select"); |
| | | |
| | | for (var i in groups) { |
| | | var groupName = groups[i]; |
| | | var item = SGWorld.ProjectTree.FindItem(groupName); |
| | | if (!item) return; |
| | | if (!item) continue; |
| | | SGWorld.ProjectTree.SetVisibility(item, false); |
| | | |
| | | var names = getLayers(groupName); |
| | | if (names.length) { |
| | | for (var i in names) { |
| | | var op = document.createElement("option"); |
| | | op.text = groupName + "\\" + names[i]; |
| | | if (0 == i) op.selected = true; |
| | | select.add(op); |
| | | } |
| | | } |
| | | } |
| | | |
| | | select.onchange = selectChanged; |
| | | setImageLayer(); |
| | | } |
| | | |
| | | function getLayers(groupName) { |
| | | var item = SGWorld.ProjectTree.FindItem(groupName); |
| | | if (!item) return []; |
| | | |
| | | var names = []; |
| | | var id = SGWorld.ProjectTree.GetNextItem(item, 11); // 11-CHILD |
| | |
| | | id = SGWorld.ProjectTree.GetNextItem(id, 13); // 13-NEXT |
| | | } |
| | | |
| | | var select = document.getElementById("select"); |
| | | for (var i in names) { |
| | | var op = document.createElement("option"); |
| | | op.text = names[i]; |
| | | if (0 == i) op.selected = true; |
| | | select.add(op); |
| | | } |
| | | select.onchange = selectChanged; |
| | | |
| | | setImageLayer(); |
| | | return names; |
| | | } |
| | | |
| | | function selectChanged(e) { |
| | | setImageLayer(); |
| | | } |
| | | |
| | | function setImageLayer() { |
| | | var select = document.getElementById("select"); |
| | | var text = select.options[select.selectedIndex].text.replace("年", ""); |
| | | var lastItem = null; |
| | | |
| | | var item = SGWorld.ProjectTree.FindItem(groupName); |
| | | if (item) { |
| | | SGWorld.ProjectTree.SetVisibility(item, false); |
| | | function setImageLayer() { |
| | | if (lastItem) { |
| | | SGWorld.ProjectTree.SetVisibility(lastItem, false); |
| | | lastItem = null; |
| | | } |
| | | |
| | | item = SGWorld.ProjectTree.FindItem(groupName + "\\" + text); |
| | | var select = document.getElementById("select"); |
| | | var text = select.options[select.selectedIndex].text; |
| | | |
| | | var item = SGWorld.ProjectTree.FindItem(text); |
| | | if (item) { |
| | | SGWorld.ProjectTree.SetVisibility(item, true); |
| | | lastItem = item; |
| | | } |
| | | } |
| | | </script> |
| | | </head> |
| | | <body> |
| | | <select id="select" style="width: 120px; text-align: center;"></select><object id="SGWorld" classid="CLSID:3a4f9199-65a8-11d5-85c1-0001023952c1"></object> |
| | | <select id="select" style="width: 170px; text-align: center;"></select><object id="SGWorld" classid="CLSID:3a4f9199-65a8-11d5-85c1-0001023952c1"></object> |
| | | </body> |
| | | </html> |
| | |
| | | <meta charset="utf-8" /> |
| | | <style> |
| | | html,body{ |
| | | margin: 0; |
| | | padding: 0; |
| | | width:100%; |
| | | height:100%; |
| | | padding:0px; |
| | | margin:0px; |
| | | overflow: hidden; |
| | | } |
| | | </style> |
| | | </head> |
| | |
| | | sgworld.Application.Multiple3DWindows.SetAsLeader(); |
| | | sgworld.Application.Multiple3DWindows.LinkPosition(globe); |
| | | |
| | | var width = 125, height = 25; |
| | | var width = 175, height = 25; |
| | | var left = 1920 / 2 - 20 - width - 20; |
| | | |
| | | showHtmlBySG(sgworld, title, location.origin + "/checkbox.html", left, 200, width, height, false); |
| | |
| | | if (projectTreeStatus) { |
| | | //sgworld.ProjectTree.ShowSearchTool = false; |
| | | //window.external.createPmDialogDock('projectTree', url + "tool/ProjectTree.html", 420, 500, 200, 500, -1, -1); |
| | | window.external.createPmDialogDock('projectTree', url + "tool/ProjectTree.html", 280, 450, 150, 20, -1, -1); //rb.width, rb.height, rb.top, rb.left, rb.bottom, rb.right |
| | | window.external.createPmDialogDock('projectTree', url + "tool/ProjectTree.html", 280, 600, 200, 20, -1, -1); //rb.width, rb.height, rb.top, rb.left, rb.bottom, rb.right |
| | | projectTreeStatus = false; |
| | | } else { |
| | | window.external.closeDialog("projectTree"); |