-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathgis.html
More file actions
76 lines (72 loc) · 3.62 KB
/
Copy pathgis.html
File metadata and controls
76 lines (72 loc) · 3.62 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="static/favicon.ico">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://api.mapbox.com/mapbox-gl-js/v2.10.0/mapbox-gl.css" rel="stylesheet">
<script src="https://api.mapbox.com/mapbox-gl-js/v2.10.0/mapbox-gl.js"></script>
<script src="https://cdn.tailwindcss.com"></script>
<!-- Load the `mapbox-gl-geocoder` plugin. -->
<script src="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v5.0.0/mapbox-gl-geocoder.min.js"></script>
<link rel="stylesheet" href="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-geocoder/v5.0.0/mapbox-gl-geocoder.css" type="text/css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<title>BIM model viewer with GIS</title>
</head>
<body>
<div class="relative w-screen h-screen" id="map"></div>
<div class="absolute top-2 left-2 z-10 flex flex-col items-start gap-2">
<div class="flex items-center">
<div class="z-20" id="geocoder"></div>
<button class="px-4 py-2 bg-blue-500 text-white rounded-xl shadow-xl flex justify-center items-center gap-2" id="coord">
<span class="material-icons material-symbols-outlined">
local_shipping
</span>
Move model to pin
</button>
</div>
<button class="px-4 py-2 bg-blue-500 text-white rounded-xl shadow-xl flex justify-center items-center gap-2" id="random">
<span class="material-icons material-symbols-outlined">
casino
</span>
Move randomly
</button>
<button class="px-4 py-2 bg-blue-500 text-white rounded-xl shadow-xl flex justify-center items-center gap-2" id="fly">
<span class="material-icons material-icons-outlined">
rocket_launch
</span>
<div id="flyText">Fly to model</div>
</button>
<button class="px-4 py-2 bg-white text-blue-500 rounded-xl shadow-xl flex justify-center items-center gap-2" id="markerVis">
<span class="material-icons material-icons-outlined">
location_on
</span>
<div id="markerVisText">Hide model marker</div>
</button>
<a class="px-4 py-2 bg-blue-500 text-white rounded-xl shadow-xl flex justify-center items-center gap-2" href='index.html'>
<span class="material-icons material-symbols-outlined">
apartment
</span>
Model viewer
</a>
</div>
<button class="fixed right-2 bottom-8 z-10 p-4 bg-blue-500 text-white rounded-full shadow-xl flex items-center justify-center">
<a class="flex items-center justify-center" href="https://github.com/helenkwok/bim-gis-viewer" target="_blank">
<span class="material-icons material-icons-outlined">
code
</span>
</a>
</button>
<footer class="fixed w-screen bottom-0 flex items-center justify-center z-10 pointer-events-none">
<div class="px-2 bg-neutral-200 bg-opacity-50">
Built with <a class="pointer-events-auto underline font-bold" href="https://ifcjs.github.io/info" target="_blank">
IFC.js
</a> and ❤ by <a class="pointer-events-auto underline font-bold text-xs lg:text-base" href="https://github.com/helenkwok" target="_blank">
Helen Kwok
</a> © 2022
</div>
</footer>
<script src="bundle/gis.js"></script>
</body>
</html>