forked from allmaps/allmaps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
99 lines (92 loc) · 2.44 KB
/
Copy pathindex.html
File metadata and controls
99 lines (92 loc) · 2.44 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@allmaps/openlayers</title>
<link
rel="stylesheet"
href="https://openlayers.org/en/v6.15.1/css/ol.css"
type="text/css"
/>
<link rel="stylesheet" href="examples/style.css" type="text/css" />
<script src="https://openlayers.org/en/v6.15.1/build/ol.js"></script>
</head>
<body>
<div id="map"></div>
<div id="controls">
<div>
<input
type="range"
id="opacity"
name="opacity"
min="0"
max="1"
step="0.001"
value="1"
/>
<label for="opacity">Opacity</label>
</div>
<div>
<input
type="checkbox"
id="remove-background-color"
name="remove-background-color"
/>
<label for="remove-background-color">Remove background</label>
</div>
<div>
<input
type="color"
id="background-color"
name="background-color"
value="#e2d1b6"
/>
<label for="background-color">Background color</label>
</div>
<div>
<input
type="range"
id="background-color-threshold"
name="background-color-threshold"
min="0"
max="1"
step="0.001"
value="0"
/>
<label for="background-color-threshold">Threshold</label>
</div>
<div>
<input
type="range"
id="background-color-hardness"
name="background-color-hardness"
min="0"
max="1"
step="0.001"
value="0.3"
/>
<label for="background-color-hardness">Hardness</label>
</div>
<div>
<input type="checkbox" id="colorize" name="colorize" />
<label for="colorize">Colorize</label>
</div>
<div>
<input
type="color"
id="colorize-color"
name="colorize-color"
value="#00ff24"
/>
<label for="colorize-color">Colorize color</label>
</div>
</div>
<script src="examples/controls.js" defer></script>
<script src="examples/examples.js" defer></script>
<script type="module">
import { WarpedMapLayer, WarpedMapSource } from './src/index.ts'
initialize(WarpedMapLayer, WarpedMapSource)
</script>
</body>
</html>