forked from wolfwind521/indoor3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (39 loc) · 1.08 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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script src="js/three.min.js"></script>
<script src="js/Detector.js"></script>
<script src="js/OrbitControls.js"></script>
<script src="js/IndoorMapTheme.js"></script>
<script src="js/Indoor3D.js"></script>
<script src="js/stats.min.js"></script>
<link href="css/indoor3D.css" rel="stylesheet">
<div id="indoor3d" style="width: 800px; height: 500px"></div>
<script>
var stats = new Stats();
stats.domElement.style.position = 'absolute';
stats.domElement.style.top = '0px';
document.body.appendChild(stats.domElement);
animate();
var params = {
mapDiv:"indoor3d"
}
var indoorMap = new Indoor3D(params);
indoorMap.load('B000A9R4FE.json', function(){
indoorMap.showFloor(1);
indoorMap.showLabels(true);
indoorMap.setSelectable(true);
var ul = indoorMap.getUI();
document.body.appendChild(ul);
});
function animate(){
requestAnimationFrame(animate);
stats.update();
}
</script>
</body>
</html>