forked from wolfwind521/indoor3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (43 loc) · 1.33 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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0 maximum-scale=1.0 user-scalable=no">
<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/IndoorMap.js"></script>
<script src="js/Projector.js"></script>
<script src="js/stats.min.js"></script>
<script src="js/IndoorMap2d.js"></script>
<script src="js/IndoorMap3d.js"></script>
<script src="js/Theme.js"></script>
<link href="css/indoor3D.css" rel="stylesheet">
<div id="indoor3d" style="width: 800px; height: 500px; top:0px; left: 0px; position: absolute"></div>
<script>
var params = {
mapDiv:"indoor3d",
dim:"2d"
}
var map = IndoorMap(params);
map.load('data/testMapData.json', function(){
//map.setTheme(testTheme);
map.showAreaNames(true).setSelectable(true);
var ul = IndoorMap.getUI(map);
document.body.appendChild(ul);
});
</script>
<!-- buttons just for test-->
<div class="testButton">
<ul >
<li onclick="map.zoomIn(1.2)">+</li>
<li onclick="map.zoomOut(0.8)">-</li>
<!--<li onclick="map.setTopView()">Top View</li>-->
<li onclick="map.setDefaultView()">Default View</li>
</ul>
</div>
</body>
</html>