-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
99 lines (96 loc) · 3.88 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
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">
<!-- (c) This file is part of pgsql-omt-schema static demo website
see https://github.com/feludwig/pgsql-omt-schema for details
Author https://github.com/feludwig
LICENSE https://github.com/feludwig/pgsql-omt-schema/blob/main/LICENSE
GPL v3 in short :
Permissions of this strong copyleft license are conditioned on making available
complete source code of licensed works and modifications, which include larger
works using a licensed work, under the same license.
Copyright and license notices must be preserved.
-->
<head>
<meta charset="utf-8">
<title>pgsql-omt-schema demo</title>
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl/dist/maplibre-gl.css">
<script src="https://unpkg.com/maplibre-gl/dist/maplibre-gl.js"></script>
<script src="demo/config.js"></script>
<style>
html, body, #map {
font-family: sans-serif;
height: 100%;
width: 100%;
}
body {
padding: 0;
margin: 0;
}
#map {
z-index: 1;
}
#meta {
background-color: rgba(255,255,255,0.75);
color: black;
z-index: 2;
position: absolute;
top: 3vw;
left: 3vw;
padding: 1vw 1.5vw;
margin: 0;
}
div#show_colour {
display:inherit;
width:1.5em;
height:0.8em;
background-color:#ff00ffff;
}
</style>
</head>
<body>
<div id="meta">
<p id="loading">Loading map...</p>
<p>Using the <a href="https://maplibre.org">MapLibre</a> library</p>
<p>
<svg height="20" aria-hidden="true" viewBox="0 0 16 16" version="1.1" width="20" data-view-component="true" class="octicon octicon-mark-github">
<path d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"></path>
</svg>
<a href="https://github.com/feludwig/pgsql-omt-schema">source code and guides</a></p>
<details open>
<summary>controls</summary>
<p><input disabled type="checkbox" id="contourscheckbox"> Show contour lines</p>
<p><input disabled type="checkbox" id="cyclecheckbox"> Show cycle routes</p>
<p><input disabled type="checkbox" id="tileboundscheckbox"> Show tile bounds</p>
<p><select type="options" id="styleselector">
</select></p>
<button id="add_relief" onclick="add_relief();">Add relief</button>
<button id="clear_playground" onclick="clear_playground();">
Clear selected <div id="show_colour"></div>
</button>
<p>
<button onclick="add_lhc_test();">Display <abbr title="Large Hadron Collider, largest particle accelerator on the planet (on Switzerland/France border)">
LHC</abbr></button>
Go to <a href="#10.78/46.2741/6.055">LHC</a>
</p>
<form>
<p>Language
<input type="radio" id="rad_local" name="lang" value="local" checked="true">
<label for="rad_local">local</label>
</p><p>
<input type="radio" id="rad_en" name="lang" value="en">
<label for="rad_en">en+local</label>
<input type="radio" id="rad_ja" name="lang" value="ja">
<label for="rad_ja">ja+local</label>
</p><p>
<input type="radio" id="rad_ar" name="lang" value="ar">
<label for="rad_ar">ar+local</label>
<input type="radio" id="rad_ru" name="lang" value="ru">
<label for="rad_ru">ru+local</label>
</p>
</form>
</details>
</div>
<div id="map"></div>
<script src="demo/main.js"></script>
</body>
</html>