-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
55 lines (46 loc) · 1.14 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>WMTS</title>
<!-- Pointer events polyfill for old browsers, see https://caniuse.com/#feat=pointer -->
<script src="https://unpkg.com/elm-pep"></script>
<style>
.map {
width: 100%;
height: 400px;
}
</style>
</head>
<body>
<div id="map" class="map"></div>
<br />
<div class="tools">
<div>
from: <input type="date" name="fromDate" id="fromDate">
to: <input type="date" name="toDate" id="toDate">
<button id="changeDatesBtn">update dates</button>
</div>
<br />
<div>
<textarea id="scriptArea" cols="60" rows="20"></textarea>
<br />
<button id="changeEvalBtn">update evalscript</button>
<br />
example code:
<pre>
//VERSION=3
function setup() {
return {
input: ["B01","B02","B03", "dataMask"],
output: { bands: 4 }
};
}
function evaluatePixel(sample) {
return [2.5 * sample.B01,2.5 * sample.B02,2.5 * sample.B03, sample.dataMask ];
}
</pre>
</div>
</div>
<script src="main.js"></script>
</body>
</html>