forked from kaktus40/cesium-sensors
-
Notifications
You must be signed in to change notification settings - Fork 9
/
czml.html
executable file
·54 lines (48 loc) · 1.38 KB
/
czml.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Use correct character set. -->
<meta charset="utf-8">
<!-- Tell IE to use the latest, best version (or Chrome Frame if pre-IE11). -->
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<!-- Make the application on mobile take up the full browser screen and disable user scaling. -->
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<title>Cesium Sensor Volumes Example</title>
<link rel="stylesheet" href="../node_modules/cesium/Build/Cesium/Widgets/widgets.css" />
<script src="../node_modules/cesium/Build/Cesium/Cesium.js"></script>
<script src="../dist/cesium-sensor-volumes.js"></script>
<style>
#cesiumContainer {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
margin: 0;
overflow: hidden;
padding: 0;
font-family: sans-serif;
}
html {
height: 100%;
}
body {
padding: 0;
margin: 0;
overflow: hidden;
height: 100%;
}
</style>
</head>
<body>
<div id="cesiumContainer"></div>
<script>
var viewer = new Cesium.Viewer('cesiumContainer');
viewer.extend(Cesium.viewerDragDropMixin);
var czmlFile = 'LotsOfSensors.czml';
var dataSource = new Cesium.CzmlDataSource(czmlFile);
dataSource.load(czmlFile);
viewer.dataSources.add(dataSource);
</script>
</body>
</html>