forked from OurHike/OurHike
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathviewer.html
More file actions
61 lines (61 loc) · 1.83 KB
/
Copy pathviewer.html
File metadata and controls
61 lines (61 loc) · 1.83 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
<!doctype html>
<html lang="en">
<!-- The artifact viewer (issue #202): drop a built .pmtiles archive from a
pipeline workflow run onto this page and see it rendered with the real
hiking cartography. Ships with every PR preview at /viewer.html, so
"does this look like a map you would navigate by" - the question
features/MAP_OPTIONS.md says only a real screen can answer - is one
artifact download away from any PR. Not part of the app a hiker sees:
its own entry point, no service worker registration, no tab bar. -->
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OurHike — map artifact viewer</title>
<style>
html,
body {
margin: 0;
height: 100%;
font-family: system-ui, sans-serif;
}
#viewer {
display: flex;
flex-direction: column;
height: 100%;
}
#viewer-bar {
padding: 0.5rem 0.75rem;
background: #355c3a;
color: #f7f3e9;
display: flex;
gap: 0.75rem;
align-items: center;
flex-wrap: wrap;
}
#viewer-bar strong {
font-size: 0.95rem;
}
#viewer-status {
font-size: 0.85rem;
opacity: 0.95;
}
#viewer-map {
flex: 1;
}
</style>
</head>
<body>
<div id="viewer">
<header id="viewer-bar">
<strong>OurHike artifact viewer</strong>
<input id="viewer-files" type="file" accept=".pmtiles" multiple />
<span id="viewer-status">
Drop .pmtiles archives here — basemap, DEM, and raster sheets are recognised
automatically.
</span>
</header>
<div id="viewer-map"></div>
</div>
<script type="module" src="/src/viewer/main.ts"></script>
</body>
</html>