-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
93 lines (86 loc) · 3.68 KB
/
index.html
File metadata and controls
93 lines (86 loc) · 3.68 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>USGS NMIC Global Minerals and Infrastructure Atlas</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&display=swap"
rel="stylesheet"
/>
<link href="https://unpkg.com/maplibre-gl@4.7.1/dist/maplibre-gl.css" rel="stylesheet" />
<link rel="stylesheet" href="./styles.css" />
</head>
<body data-theme="dark">
<div class="app-shell">
<aside class="sidebar" id="sidebar">
<div class="panel brand">
<div>
<p class="eyebrow">USGS data release</p>
<h1>Global Minerals and Infrastructure Atlas</h1>
</div>
<button class="icon-button mobile-only" id="closeSidebarButton" aria-label="Close panel">×</button>
</div>
<section class="panel">
<label class="search-label" for="searchInput">Search places, commodities, operators, provinces</label>
<input id="searchInput" type="search" placeholder="Search visible layers" autocomplete="off" />
<div class="search-results" id="searchResults"></div>
</section>
<section class="panel controls-panel">
<div class="panel-header">
<h2>Basemap</h2>
<button class="text-button" id="homeButton">Reset View</button>
</div>
<div class="segmented" id="basemapSwitcher">
<button data-basemap="light">Monochrome</button>
<button data-basemap="satellite" class="is-active">Satellite</button>
</div>
</section>
<section class="panel controls-panel">
<div class="panel-header">
<h2>Theme</h2>
</div>
<div class="segmented" id="themeSwitcher">
<button data-theme="light">Light</button>
<button data-theme="dark" class="is-active">Dark</button>
</div>
</section>
<section class="panel controls-panel">
<div class="panel-header">
<h2>Layers</h2>
<div class="panel-actions">
<button class="text-button" id="showAllButton">Show All</button>
<button class="text-button" id="hideAllButton">Hide All</button>
</div>
</div>
<div id="layerList" class="layer-list"></div>
</section>
<section class="panel">
<div class="panel-header">
<h2>Selection</h2>
<span class="meta" id="selectionMeta">Nothing selected</span>
</div>
<div id="detailsCard" class="details-card empty">Click a feature to inspect its attributes.</div>
</section>
</aside>
<div class="sidebar-resizer" id="sidebarResizer" aria-hidden="true"></div>
<main class="map-frame">
<button class="icon-button panel-toggle" id="openSidebarButton" aria-label="Open panel">Layers</button>
<div id="map"></div>
<div class="map-overlay top-left">
<div class="status-chip" id="statusChip">Loading layers…</div>
</div>
<div class="legend-shell is-expanded" id="legendShell">
<div class="legend-header" id="legendDragHandle">
<strong>Legend</strong>
<button class="text-button legend-toggle" id="legendToggleButton" type="button">Fold</button>
</div>
<div class="legend-body" id="legend"></div>
</div>
</main>
</div>
<script type="module" src="./app.js"></script>
</body>
</html>