-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
142 lines (122 loc) · 4.98 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Le Mont-Saint-Michel</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">
<script src="./threejs/three.min.js"></script>
<script src="./threejs/OrbitControls.js"></script>
<script src="./threejs/ViewHelper.js"></script>
<script src="./proj4js/proj4.js"></script>
<script src="./Qgis2threejs.js"></script>
<script src="./dat-gui/dat.gui.min.js"></script>
<script src="./dat-gui_panel.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">
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.1).
<div>Powered by <a href="https://threejs.org/">three.js</a>,
<a href="https://code.google.com/p/dat-gui/">dat-gui</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>
<!-- header and footer -->
<div id="header"></div>
<div id="footer"><table style="position: fixed; left: 100px; bottom: 10px; font-family: Arial Narrow, sans-serif; font-size: 20px; color: #000000;">
<tr>
<td style="padding: 10px;">Le Mont Saint-Michel</td>
<td style="padding: 10px;">Normandie</td>
<td style="padding: 10px;"><a href="https://www.qgis.org/fr/site/"><img src="qgis.png" alt="qgis" width="20" height="21"/>
<td style="padding: 10px;"><a href="https://qgis2threejs.readthedocs.io/en/docs/index.html"><img src="Qgis2threejs.png" alt="qgis2threejs" width="20" height="21"/>
<td style="padding: 10px;">© RG</td>
<td style="padding: 10px;"><a href="https://twitter.com/infogere"><img src="twitter.png" alt="infogere sur github" width="20" height="21"/>
</tr>
</table>
</div>
<!-- animation -->
<div id="narrativebox" class="ef1">
<div id="narbody">
</div>
<div id="nextbtn"></div>
</div>
<script>
Q3D.Config.coord.latlon = true;
Q3D.Config.viewpoint = {lookAt:{x:-168238.6287921014,y:6213312.805765134,z:0.0},pos:{x:-168004.22429953024,y:6212799.1246152045,z:273.62056895974916}};
Q3D.Config.localMode = true;
Q3D.Config.northArrow.enabled = true;
Q3D.Config.northArrow.color = 0x6673b3;
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();
gui.dat.initLayersFolder(scene);
}, function (scene) {
// all relevant files have been loaded
if (Q3D.Config.gui.customPlane) {
var zMin = undefined,
zMax = undefined;
gui.dat.initCustomPlaneFolder(zMin, zMax);
}
});
</script>
</body>
</html>