-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (56 loc) · 1.51 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>
<meta charset="UTF-8">
<title>Wasserbilanz-WebViewer</title>
<link rel="stylesheet" href="node_modules/ol/ol.css">
<link rel="stylesheet" href="node_modules/ol-layerswitcher/dist/ol-layerswitcher.css">
<style>
h1 {
text-align: center;
margin-bottom: 0;
}
p {
text-align: center;
}
.map {
width: 100%;
height: 600px;
border: 1px solid black;
}
body {
font-family: sans-serif;
}
#controls label {
font-weight: bold;
margin-right: 30px;
padding-top: 5px;
}
input[type="range"] {
flex: 1;
height: 2em;
}
#controls {
margin-top: 10px;
display: flex;
}
img#legend {
margin-left: 30px;
width: 700px;
}
</style>
</head>
<body>
<h1>Wasserbilanz-WebViewer</h1>
<p>Cloud-optimized GeoTIFFs served directly from the AgriSens Datacube</p>
<div id="map" class="map"></div>
<div id="controls">
<label id="DOY">Day of year: 160</label>
<input type="range" min="160" max="180" step="1" value="160" oninput="window.handleSlider(event)"/>
<!-- Pointer events polyfill for old browsers, see https://caniuse.com/#feat=pointer -->
<img src="legend.png" id="legend"/>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/elm-pep.js"></script>
<script type="module" src="main.js"></script>
</body>
</html>