1
Surpriseplus
2022-10-14 6d536dea3cec157947947aa075bebde4305f29b9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
 
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>露天矿山三维试点项目</title>
    <link href="css/bootstrap.min.css" rel="stylesheet" />
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/config.js"></script>
    <script src="js/detect.js"></script>
    <script src="js/common.js"></script>
    <script src="js/tools.js"></script>
    <script type="text/javascript">
        var idleMode = null;
        var sgworld = null;
        var sgworldEx = null;
 
        function LoadFly() {
            try {
                if (isIE()) {
                    sg = sgworld = CreateSGObj();
                    sg.AttachEvent("OnFrame", g1OnFrame);
                    sg.AttachEvent("OnLButtonDown", g1OnLButtonDown);
                    sg.Open(flyurl);
 
 
                } else {
                    alert("请安装三维浏览插件并允许插件运行使用!");
                }
            } catch (e) {
                alert(e);
            }
        }
 
        function g1OnFrame() {
            if (idleMode == 1) {
                var pos = sgworld.Navigate.GetPosition(3);
                sgworldEx.Navigate.SetPosition(pos);
            }
        }
 
        function g1OnLButtonDown(Flags, X, Y, pbHandled) {
            idleMode = 1;
        }
 
        function g2OnFrame() {
            if (idleMode == 2) {
                var pos = sgworldEx.Navigate.GetPosition(3);
                sgworld.Navigate.SetPosition(pos);
            }
        }
 
        function g2OnLButtonDown(Flags, X, Y, pbHandled) {
            idleMode = 2;
        }
 
        window.setTimeout("LoadFly()", 1000);
        window.setTimeout("LoadFlyEx()", 2000);
 
        function LoadFlyEx() {
            sgworldEx = TerraExplorer3DWindowEx.CreateInstance("TerraExplorerX.SGWorld701");
            sgworldEx.AttachEvent("OnLoadFinished", OnLoadFinishedEx);
            sgworldEx.AttachEvent("OnFrame", g2OnFrame);
            sgworldEx.AttachEvent("OnLButtonDown", g2OnLButtonDown);
            sgworldEx.Open(flyurl2);
        }
 
        function OnLoadFinishedEx() {
            //var rightEarthTitle = window.document.getElementById("rightEarthTitle");
            //rightEarthTitle.innerText = "2019年";
 
            var rightEarthPanel = window.document.getElementById("rightEarthPanel");
            rightEarthPanel.style.display = "none";
        }
 
        var bshow = 0;
 
        function ShowPopup() {
            try {
                var sg = CreateSGObj();
                var ppCation = "辅助分析";
                pp = sg.Creator.CreatePopupMessage(ppCation, abspath() + "/tools.html", sg.Window.Rect.width - 235, 5, 230, 230, -1);
                var pp = sg.Window.GetPopupByCaption(ppCation);
                if (bshow == 0) {
                    sg.Window.ShowPopup(pp);
                    bshow = 1;
                } else {
                    sg.Window.RemovePopup(pp);
                    bshow = 0;
                }
            } catch (e) {
                alert(e);
            }
        }
 
        function ShowProjectTree() {
            try {
                var projecttree = window.document.getElementById("TerraExplorerInformationWindow");
                var tdwindow = window.document.getElementById("TerraExplorer3DWindow");
                if (projecttree.style.display == 'none') {
                    projecttree.style.display = '';
                    tdwindow.style.width = "80%";
                } else {
                    projecttree.style.display = 'none';
                    tdwindow.style.width = "100%";
                }
            } catch (e) {
                alert(e);
            }
        }
 
        function ShowInitStatue() {
            try {
                locationBrowse("全貌", 0, "");
            } catch (e) {
                alert(e);
            }
        }
 
        function ShowMultiple() {
            var leftEarthPanel = window.document.getElementById("leftEarthPanel");
            var rightEarthPanel = window.document.getElementById("rightEarthPanel");
            if (leftEarthPanel.style.width == "100%") {
                leftEarthPanel.style.width = "50%";
                rightEarthPanel.style.display = "";
 
            } else {
                leftEarthPanel.style.width = "100%";
                rightEarthPanel.style.display = "none";
            }
        }
 
        function Show2D() {
            var leftEarthPanel = window.document.getElementById("leftEarthPanel");
            var rightEarthPanel = window.document.getElementById("rightEarthPanel");
            if (leftEarthPanel.style.width == "100%") {
                leftEarthPanel.style.width = "50%";
                rightEarthPanel.style.display = "";
                sgworldEx.Command.Execute(1054, 0);
            } else {
                leftEarthPanel.style.width = "100%";
                rightEarthPanel.style.display = "none";
                sgworldEx.Command.Execute(1052, 0);
            }
 
        }
 
        function showKSResult() {
            var ksResultList = window.document.getElementById("ksResultList");
            ksResultList.style.display = "";
        }
 
        var bshowProfile = 0;
 
        function ShowProfile() {
            try {
                var sg = CreateSGObj();
                var ppCation = "地形剖面";
                pp = sg.Creator.CreatePopupMessage(ppCation, abspath() + "/TerrainProfile/TerrainProfile.html", 0, 0, 300, 200, -1);
                var pp = sg.Window.GetPopupByCaption(ppCation);
                if (bshowProfile == 0) {
                    sg.Window.ShowPopup(pp);
                    bshowProfile = 1;
                } else {
                    sg.Window.RemovePopup(pp);
                    bshowProfile = 0;
                }
            } catch (e) {
                alert(e);
            }
        }
 
        var bshowVolume = 0;
 
        function ShowVolume() {
            try {
                var sg = CreateSGObj();
                var ppCation = "土方量";
                pp = sg.Creator.CreatePopupMessage(ppCation, abspath() + "/Volume/Volume.html", 0, 0, 300, 230, -1);
                var pp = sg.Window.GetPopupByCaption(ppCation);
                if (bshowVolume == 0) {
                    sg.Window.ShowPopup(pp);
                    bshowVolume = 1;
                } else {
                    sg.Window.RemovePopup(pp);
                    bshowVolume = 0;
                }
            } catch (e) {
                alert(e);
            }
        }
 
        var bshow = 0;
 
        function showCross() {
            try {
                var sg = sgworld;
                var ppCation = "模型剖切展示";
                pp = sg.Creator.CreatePopupMessage(ppCation, alltoolurl + "/CrossSection/CrossSection.html", sg.Window.Rect.width - 235, 230 + 5, 230, 230, -1);
                var pp = sg.Window.GetPopupByCaption(ppCation);
                if (bshow == 0) {
                    sg.Window.ShowPopup(pp);
                    bshow = 1;
                } else {
                    sg.Window.RemovePopup(pp);
                    bshow = 0;
                }
            } catch (e) {
                alert(e);
            }
        }
 
        function qlcTrainS(selectIdName) {
 
            var arrValue = document.getElementById(selectIdName).options[document.getElementById(selectIdName).selectedIndex].value;
 
            //alert(arrValue);
 
        }
    </script>
    <style>
        .has-feedback {
            position: relative;
        }
        
        .navbar-form .has-feedback .form-control-feedback {
            top: 0;
        }
        
        .form-control-feedback {
            position: absolute;
            top: 0;
            right: 0;
            z-index: 2;
            display: block;
            width: 34px;
            height: 34px;
            line-height: 34px;
            text-align: center;
            pointer-events: none;
        }
        
        .toolsbtn {
            display: inline-block;
            color: white;
            margin: 5px;
            vertical-align: top;
            cursor: pointer;
        }
    </style>
</head>
 
<body style="margin: 0px; border: 0px; background-color:black; overflow:hidden;">
    <div id="top">
        <nav class="navbar navbar-inverse">
            <div class="navbar-header">
                <a class="navbar-brand" href="http://www.smartearth.cn">露天矿山三维试点项目</a>
            </div>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#" onclick="ShowInitStatue()">基础数据</a></li>
                <li><a href="#" onclick="ShowScheduling()">数据应用</a></li>
                <li><a href="#" onclick="ShowMonitor()">语义分析</a></li>
                <!--<li><a href="#" onclick="ShowPopup()">辅助分析</a></li>-->
                <!--<li><a href="#" onclick="ShowMultiple()">分屏对比</a></li>-->
                <!--<li><a href="#" onclick="ShowProfile()">剖面分析</a></li>
                <li><a href="#" onclick="ShowVolume()">土方量</a></li>-->
                <li>
                    <a></a>
                </li>
            </ul>
        </nav>
    </div>
    <div id="tools" style="position:absolute; left:15%; top:50px;height:30px;width:85%;">
        <!--工具栏-->
        <div id="querty" class="toolsbtn" onclick="allclickinformation();">查询</div>
        <div id="querty" class="toolsbtn" onclick="distance3D();">距离量测</div>
        <div id="querty" class="toolsbtn" onclick="vertical();">高度量测</div>
        <div id="querty" class="toolsbtn" onclick="cover();">平面面积量测</div>
        <div id="querty" class="toolsbtn" onclick="cover3D();">立面面积量测</div>
        <div id="querty" class="toolsbtn" onclick="isohypse();">等高线</div>
        <div id="querty" class="toolsbtn" onclick="showslope();">坡度图</div>
        <div id="querty" class="toolsbtn" onclick="route();">最佳路径</div>
        <div id="querty" class="toolsbtn" onclick="ShowProfile()">地形剖面分析</div>
        <div id="querty" class="toolsbtn" onclick="submerge();">洪水淹没分析</div>
        <div id="querty" class="toolsbtn" onclick="ShowVolume()">土方量分析</div>
        <div id="querty" class="toolsbtn" onclick="showCross();">三维截面分析</div>
        <div id="querty" class="toolsbtn" onclick="intervisibility();">通视分析</div>
        <div id="querty" class="toolsbtn" onclick="ken();">视域分析</div>
        <div id="querty" class="toolsbtn" onclick="showTime();">时间滑块</div>
        <div id="querty" class="toolsbtn" onclick="showSun();">太阳</div>
        <div id="querty" class="toolsbtn" onclick="showShadow();">阴影</div>
        <div class="toolsbtn">
            <select name="trains" onchange="qlcTrainS('hn_select_input')" style="margin-bottom: 0px;color:#8E8E8E;height:28px;" class="form-control m-b selectpicker" id="hn_select_input">
                <option value="2020">2020</option>
                <option value="2019">2019</option>
                <option value="2018">2018</option>
                <option value="2017">2017</option>
                <option value="2016">2016</option>
            </select>
        </div>
        <div id="querty" class="toolsbtn" onclick="ShowMultiple();">对比</div>
        <div id="querty" class="toolsbtn" onclick="Show2D();">二维</div>
    </div>
    <div id="LeftPanel" class="navbar-inverse" style="width:15%;height:100%;">
        <ul class="nav nav-tabs" role="tablist">
            <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">矿山查询</a></li>
            <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">语义查询</a></li>
            <li role="presentation"><a href="#projecttree" aria-controls="projecttree" role="tab" data-toggle="tab">图层管理</a></li>
        </ul>
        <div class="tab-content">
            <div role="tabpanel" class="tab-pane fade in active" id="home">
                <div class="form-group has-feedback">
                    <label for="pw"></label>
                    <span class="glyphicon glyphicon-search form-control-feedback"></span>
                    <input type="text" id="pw" class="form-control" placeholder="请输入矿山名称" style="width:73%;margin-left:3%;" />
                    <button type="button" class="btn btn-success" style="position:absolute; top:5px; right:3%;" onclick="showKSResult()">确定</button>
                </div>
                <div id="ksResultList" style="display:none;">
                    <ul class="list-group">
                        <a class="list-group-item" href="#">某某矿山</a>
                        <a class="list-group-item" href="#">某某矿山</a>
                        <a class="list-group-item" href="#">某某矿山</a>
                        <a class="list-group-item" href="#">某某矿山</a>
                        <a class="list-group-item" href="#">某某矿山</a>
                        <a class="list-group-item" href="#">某某矿山</a>
                        <a class="list-group-item" href="#">某某矿山</a>
                        <a class="list-group-item" href="#">某某矿山</a>
                    </ul>
                </div>
            </div>
            <div role="tabpanel" class="tab-pane fade" id="profile">2</div>
            <div role="tabpanel" class="tab-pane fade" id="projecttree">
                <object id="TerraExplorerInformationWindow" classid="CLSID:B23DDF84-B652-4E34-9E57-77B8731199FE" style="width: 100%; height: 600px;"></object>
            </div>
        </div>
    </div>
 
    <div style="position: absolute; top: 80px; bottom: 0px; left:15%; width: 85%; background-color: black; margin: 0px; border: 0px; margin-top: 3px;">
        <div id="leftEarthPanel" style="width: 100%; height: 100%;z-index:1000000;">
 
            <!--<div id="leftEarthTitle" style="width:100%; height:5%;color:white;">2020年</div>-->
            <object id="TerraExplorer3DWindow" classid="CLSID:3a4f9192-65a8-11d5-85c1-0001023952c1" style="top:5%; width: 100%; height:100%; z-index:1000000;"></object>
        </div>
        <div id="rightEarthPanel" style="position:absolute;top:0px;left:50%; width: 50%; height: 100%; z-index:10;">
            <!--<div id="rightEarthTitle" style="width:100%; height:5%;color:white;z-index:10;"></div>-->
            <object id="TerraExplorer3DWindowEx" classid="CLSID:3a4f9196-65a8-11d5-85c1-0001023952c1" style="top:5%; width: 100%; height:100%; z-index:10;"></object>
        </div>
    </div>
</body>
 
</html>