-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
154 lines (140 loc) · 4.16 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
149
150
151
152
153
154
<!-- SIMPLE API DEMO -->
<html>
<head>
<title>iTowns TEST</title>
<meta charset="UTF-8">
<style>
.controls {
border-radius: 5px;
position: absolute;
top: 10px;
left: 10px;
background: rgba(200,200,200,0.5);
font-family: Arial;
padding: 10px;
color: white;
}
.row {
display: table-row;
}
.row .labelswitch,
.row .switch {
display: table-cell;
vertical-align: middle;
padding: 2px;
}
*,
*:before,
*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.cmn-toggle {
position: absolute;
margin-left: -9999px;
visibility: hidden;
}
.cmn-toggle + label {
display: block;
position: relative;
cursor: pointer;
outline: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
input.cmn-toggle-round + label {
padding: 2px;
width: 40px;
height: 20px;
background-color: #dddddd;
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
-ms-border-radius: 20px;
-o-border-radius: 20px;
border-radius: 20px;
}
input.cmn-toggle-round + label:before, input.cmn-toggle-round + label:after {
display: block;
position: absolute;
top: 1px;
left: 1px;
bottom: 1px;
content: "";
}
input.cmn-toggle-round + label:before {
right: 1px;
background-color: #f1f1f1;
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
-ms-border-radius: 20px;
-o-border-radius: 20px;
border-radius: 20px;
-webkit-transition: background 0.4s;
-moz-transition: background 0.4s;
-o-transition: background 0.4s;
transition: background 0.4s;
}
input.cmn-toggle-round + label:after {
width: 18px;
background-color: #fff;
-webkit-border-radius: 100%;
-moz-border-radius: 100%;
-ms-border-radius: 100%;
-o-border-radius: 100%;
border-radius: 100%;
-webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
-moz-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
-webkit-transition: margin 0.4s;
-moz-transition: margin 0.4s;
-o-transition: margin 0.4s;
transition: margin 0.4s;
}
input.cmn-toggle-round:checked + label:before {
background-color: #8ce196;
}
input.cmn-toggle-round:checked + label:after {
margin-left: 20px;
}
</style>
</head>
<body style="height: 100%;overflow: hidden;margin:0;padding:0" >
<div id="containerITOWNS" tabindex="1" ></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="../itowns/dist/itowns.js"></script>
<script>
var itowns;
function initialize() {
if (typeof allInitialized != 'undefined' && allInitialized) { // Check that everything is loaded
itowns = new API({
images : {
url : "images/140616/Paris-140616_0740-{cam.id}-00001_{pano.id:07}.jpg",
cam : "cameraCalibration.json",
pano : "panoramicsMetaData.json",
buildings : "buildingFootprint.json",
DTM : "dtm.json",
visible: true
},
position : { x:651182.91,y:39.6,z:6861343.03 }
});
}
else {
console.log("checking");
setTimeout(initialize, 150);
}
}
initialize();
</script>
<div id="controls" class="controls">
<div class="help">
Use mouse to <strong>rotate</strong> the camera.<br />
Use mouse wheel to <strong>zoom in or out</strong>.<br />
Use mouse left click to <strong>move forward</strong>.<br />
Use keyboard arrows to <strong>move up and down</strong>.<br />
</div>
</div>
</body>
</html>