-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
148 lines (128 loc) · 4.49 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>3-D Visualization</title>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<base target="_blank">
<link rel="stylesheet" type="text/css" href="./Qgis2threejs.css">
<style type="text/css">
#popup, #header, #layerpanel {
left: 36px;
}
</style>
<script src="./threejs/three.min.js"></script>
<script src="./threejs/OrbitControls.js"></script>
<script src="./threejs/ViewHelper.js"></script>
<script src="./threejs/OutlineEffect.js"></script>
<script src="./tweenjs/tween.js"></script>
<script src="./Qgis2threejs.js"></script>
</head>
<body>
<div id="view">
<div id="northarrow"></div>
<div id="navigation"></div>
</div>
<!-- popup -->
<div id="popup">
<div id="closebtn">×</div>
<div id="popupbar"></div>
<div id="popupbody">
<div id="popupcontent"></div>
<!-- query result -->
<div id="queryresult">
<table id="qr_coords_table">
<caption>Clicked coordinates <div id="zoomtopoint" class="action-zoom zoombtn"></div></caption>
<tr><td id="qr_coords"></td></tr>
</table>
<table id="qr_layername_table">
<caption>Layer <div id="zoomtolayer" class="action-zoom zoombtn"></div></caption>
<tr><td id="qr_layername"></td></tr>
</table>
<table id="qr_attrs_table">
<caption>Attributes</caption>
</table>
<!-- camera actions and measure tool -->
<div id="orbitbtn" class="action-btn action-orbit">Orbit</div>
<div id="measurebtn" class="action-btn">Measure distance</div>
</div>
<!-- page info -->
<div id="pageinfo">
<h1>Current View URL</h1>
<div><input id="urlbox" type="text"></div>
<h1>Usage</h1>
<table id="usage">
<tr><td colspan="2" class="star">Mouse</td></tr>
<tr><td>Left button + Move</td><td>Orbit</td></tr>
<tr><td>Mouse Wheel</td><td>Zoom</td></tr>
<tr><td>Right button + Move</td><td>Pan</td></tr>
<tr><td colspan="2" class="star">Keys</td></tr>
<tr><td>Arrow keys</td><td>Move Horizontally</td></tr>
<tr><td>Shift + Arrow keys</td><td>Orbit</td></tr>
<tr><td>Ctrl + Arrow keys</td><td>Rotate</td></tr>
<tr><td>Shift + Ctrl + Up / Down</td><td>Zoom In / Out</td></tr>
<tr><td>L</td><td>Toggle Label Visibility</td></tr>
<tr><td>R</td><td>Start / Stop Orbit Animation</td></tr>
<tr><td>W</td><td>Wireframe Mode</td></tr>
<tr><td>Shift + R</td><td>Reset Camera Position</td></tr>
<tr><td>Shift + S</td><td>Save Image</td></tr>
</table>
<h1>About</h1>
<div id="about"><img src="./Qgis2threejs.png">
This page was made with <a href="https://www.qgis.org/">QGIS</a> and <a href="https://github.com/minorua/Qgis2threejs">Qgis2threejs</a> plugin (version 2.7).
<div>Powered by <a href="https://threejs.org/">three.js</a>
<span id="lib_proj4js"> and <a href="https://trac.osgeo.org/proj4js/">Proj4js</a></span>.</div>
</div>
</div>
</div>
</div>
<!-- progress bar -->
<div id="progress"><div id="progressbar"></div></div>
<!-- menu -->
<div id="toolbtns">
<div id="layerbtn"></div>
<div id="animbtn" class="hidden"></div>
<div id="infobtn"></div>
</div>
<!-- header and footer -->
<div id="header">s6047165 - Onurcan Çirpik</div>
<div id="header2"><img src="classlegend.jpg"> </div>
<div id="footer">North Arrow</div>
<!-- layer panel -->
<div id="layerpanel">
<div id="layerlist"></div>
</div>
<!-- animation -->
<div id="narrativebox" class="ef1">
<div id="narbody">
<div id="nar_0bf580f0" class="narcontent">
View from West-Side
</div>
<div id="nar_d10a09f9" class="narcontent">
View from North
</div>
</div>
<div id="nextbtn"></div>
</div>
<script>
Q3D.Config.allVisible = true;
Q3D.Config.viewpoint = {lookAt:{x:176279.3958450012,y:314526.9796772097,z:72.89625582027269},pos:{x:176853.59285910535,y:308745.31368715107,z:2846.470542022064}};
Q3D.Config.localMode = true;
Q3D.Config.animation.enabled = true;
Q3D.Config.animation.startOnLoad = true;
Q3D.Config.northArrow.enabled = true;
Q3D.Config.northArrow.color = 0xfd0303;
var container = document.getElementById("view"),
app = Q3D.application,
gui = Q3D.gui;
app.init(container); // initialize viewer
// load the scene
app.loadSceneFile("./data/index/scene.js", function (scene) {
// scene file has been loaded
app.start();
}, function (scene) {
// all relevant files have been loaded
});
</script>
</body>
</html>