-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelevplot.html
More file actions
76 lines (70 loc) · 1.99 KB
/
elevplot.html
File metadata and controls
76 lines (70 loc) · 1.99 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
<link href="https://unpkg.com/cesium/Build/Cesium/Widgets/widgets.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.1/dist/chart.umd.min.js"></script>
<style>
html, body, #layout, #cesiumContainer {
height: 100vh; width: 100%; margin: 0; padding: 0;
}
#layout { display: flex; }
#cesiumContainer { flex: 1; position: relative; }
#profiles {
width: 33%; overflow-y: auto; border-left: 1px solid #ccc;
padding: 1em;
}
.profileCanvas { width: 100%; height: 100%; margin-bottom: 2em; }
.hidden {
display: none !important;
}
/* —— Control Panel styling —— */
#controlPanel {
position: absolute;
top: 10px;
left: 10px;
background: rgba(255,255,255,0.9);
padding: 10px;
border-radius: 4px;
font-family: sans-serif;
font-size: 14px;
z-index: 1000;
box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
#controlPanel label {
display: block;
margin-bottom: 6px;
}
#controlPanel input {
width: 180px;
margin-left: 4px;
}
#controlPanel button {
margin-top: 6px;
padding: 4px 8px;
}
/* highlight an existing chart briefly when we scroll to it */
@keyframes flashOutline {
0% { box-shadow: 0 0 0 0 rgba(0,128,255,0.9); }
100% { box-shadow: 0 0 0 10px rgba(0,128,255,0); }
}
.profileFlash {
animation: flashOutline 600ms ease-out 1;
border-radius: 6px;
}
</style>
<body>
<div id="layout">
<div id="cesiumContainer"></div>
<div id="profiles"></div>
</div>
<!-- Control Panel -->
<div id="controlPanel">
<label>
Max Feet:
<input id="maxFeetInput" type="number" value="600" />
<button id="updateMaxBtn">Set</button>
</label>
<label>
CZML URL:
<input id="czmlInput" type="text"
value="https://raw.githubusercontent.com/hcarter333/rm-rbn-history/refs/heads/main/maps/OrganSteep.czml" />
</label>
<button id="loadBtn">Load Map</button>
</div>