-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathelevations-view-ace-it-r2.html
125 lines (81 loc) · 3.59 KB
/
elevations-view-ace-it-r2.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
<!doctype html>
<html lang=en >
<head>
<meta charset=utf-8 >
<title>Elevations View ACE-IT R2</title>
<meta name=viewport content='width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no' >
<meta name=description content='Elevations Core3, load and display interactive 3D maps. 2D maps applied as overlays on 3D meshes.
Select source and resolution of overlays. Toggle or control display of various viewing and debugging aids. Display messages as 3D placards.
A voyage around family property locations.' >
<meta name=keywords content='family,property,cartography,maps,geology,geography,vr,interactive,WebGL,Three.js,JavaScript,GitHub,FOSS,3D,STEM' >
<meta name=date content='2016-10-03' >
</head>
<body>
<!--
<script src=https://mrdoob.github.io/three.js/build/three.min.js ></script>
<script src=https://mrdoob.github.io/three.js/examples/js/controls/OrbitControls.js ></script>
<script src=https://mrdoob.github.io/three.js/examples/js/libs/stats.min.js ></script>
-->
<script src=https://rawgit.com/mrdoob/three.js/dev/build/three.min.js ></script>
<script src=https://rawgit.com/mrdoob/three.js/dev/examples/js/controls/OrbitControls.js ></script>
<script src=https://rawgit.com/mrdoob/three.js/dev/examples/js/libs/stats.min.js ></script>
<!--
<script src=https://jaanga.github.io/terrain3/elevations-core2/cor-core/core-r1.js ></script>
<script src=https://jaanga.github.io/terrain3/elevations-core2/sel-select/select-r1.js ></script>
<script src=https://jaanga.github.io/terrain3/elevations-core2/ovr-overlay/overlay-r1.js ></script>
<script src=https://jaanga.github.io/terrain3/elevations-core2/ter-terrain/terrain-r1.js ></script>
<script src=https://jaanga.github.io/terrain3/elevations-core2/thr-threejs/threejs-r1.js ></script>
<script src=https://jaanga.github.io/terrain3/elevations-core2/map-map/map-r1.js ></script>
-->
<script src=a-cor-core/core-r2.js ></script>
<script src=b-sel-select/select-r1.js ></script>
<script src=c-ovr-overlay/overlay-r1.js ></script>
<script src=d-ter-terrain/terrain-r1.js ></script>
<script src=e-thr-threejs/threejs-r1.js ></script>
<script src=f-map-map/map-r2.js ></script>
<script>
SEL.urlAPITreeContents = 'https://api.github.com/repos/jaanga/terrain3/git/trees/gh-pages?recursive=1';
SEL.searchInFolder = 'elevations-data-family+friends/';
// SEL.extension = '.txt';
// SEL.urlBase = 'https://jaanga.github.io/terrain3/elevations-data/' + SEL.searchInFolder;
SEL.urlBase = '../elevations-data/' + SEL.searchInFolder;
init();
THR.getThreeJS();
THR.animate();
function init() {
COR.initLeftMenu();
COR.menu.innerHTML =
COR.getMenuDetailsHeader() +
SEL.getMenuDetailsSelectFile() +
// KML.getMenuDetailsKML() +
OVR.getMenuDetailsOverlay() +
TER.getMenuDetailsTerrain() +
COR.getMenuDetailsObjectProperties() +
COR.getMenuDetailsAbout() +
COR.getMenuFooter() +
b;
if ( location.hash.length ) { SEL.defaultFile = location.hash.slice( 6 ); }
SEL.getGitHubAPITreeContents();
THR.moreThreejsInits = function() {
THR.renderer.setClearColor( 0x7ec0ee );
THR.updateCamera = true;
THR.axisHelper = new THREE.AxisHelper( 50 );
THR.scene.add( THR.axisHelper );
THR.axisHelper.visible = false;
TERchkAxisHelper.checked = false;
TERchkBoxHelper.checked = false;
TERchkRotate.click();
window.addEventListener( 'keyup', THR.onKeyUp, false );
THR.toggleFog( true );
};
}
COR.onLoadJSONFile = function() {
// COR.place = SEL.fileJSON;
COR.getPlaceDefaults();
OVR.setMenuDetailsOverlay();
console.log( 'file loaded', SEL.fileName );
MAP.initMapGeometry();
}
</script>
</body>
</html>