forked from xuzhao123/cesium-graph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (50 loc) · 1.52 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Use correct character set. -->
<meta charset="utf-8">
<!-- Tell IE to use the latest, best version. -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Make the application on mobile take up the full browser screen and disable user scaling. -->
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>cesium-geometry</title>
<script src=./node_modules/cesium/Build/CesiumUnminified/Cesium.js></script>
<!-- <script src=./Cesium/Cesium.js></script>-->
<style>
@import url(./node_modules/cesium/Build/CesiumUnminified/Widgets/widgets.css);
html,
body,
#cesiumContainer {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
button {
position: absolute;
left: 0px;
top: 0px;
}
</style>
</head>
<body>
<div id="cesiumContainer"></div>
<button onclick="change('elliposid')" style="left:0px;">
elliposid
</button>
<button onclick="change('polylineArrow')" style="left:80px;">
polylineArrow
</button>
<button onclick="change('sensor')" style="left:200px;">
sensor
</button>
<script>
var viewer = new Cesium.Viewer('cesiumContainer');
function change(d) {
location.href = 'Apps/' + d + '.html';
}
</script>
</body>
</html>