-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
362 lines (345 loc) · 18.8 KB
/
Copy pathindex.html
File metadata and controls
362 lines (345 loc) · 18.8 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<!-- SEO Meta Tags -->
<meta name="description" content="Real-time and historical forest fire map of Europe. Track active fires and burnt areas with satellite data from EU EFFIS and NASA FIRMS." />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://forest-fires-map.vercel.app/" />
<meta property="og:title" content="Forest Fires Map" />
<meta property="og:description" content="Real-time and historical forest fire map of Europe. Track active fires and burnt areas with satellite data from EU EFFIS and NASA FIRMS." />
<meta property="og:image" content="/og-image.png" />
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://forest-fires-map.vercel.app/" />
<meta property="twitter:title" content="Forest Fires Map" />
<meta property="twitter:description" content="Real-time and historical forest fire map of Europe. Track active fires and burnt areas with satellite data from EU EFFIS and NASA FIRMS." />
<meta property="twitter:image" content="/og-image.png" />
<!-- Icons -->
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<title>Forest Fires Map</title>
</head>
<body>
<div id="app">
<header id="toolbar">
<div class="logo-container">
<img src="/logo.svg" alt="Forest Fires Map Logo" class="header-logo" />
<h1 data-i18n="header_title">Forest Fires Map</h1>
</div>
<span id="status" role="status"></span>
<div class="toolbar-actions">
<button
type="button"
id="about-btn"
class="about-btn has-tooltip"
data-tooltip-pos="bottom"
data-i18n-aria-label="aria_about"
aria-label="About the app"
>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<line x1="12" y1="16" x2="12" y2="12"></line>
<line x1="12" y1="8" x2="12.01" y2="8"></line>
</svg>
</button>
<div class="lang-container">
<button
type="button"
id="lang-btn"
class="lang-btn has-tooltip"
data-tooltip-pos="bottom"
data-i18n-aria-label="aria_change_language"
aria-label="Change language"
>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<line x1="2" y1="12" x2="22" y2="12"></line>
<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>
</svg>
</button>
<div id="lang-menu" class="lang-menu" hidden>
<button type="button" class="lang-option" data-lang="en">English</button>
<button type="button" class="lang-option" data-lang="es">Español</button>
<button type="button" class="lang-option" data-lang="de">Deutsch</button>
<button type="button" class="lang-option" data-lang="fr">Français</button>
</div>
</div>
</div>
</header>
<div id="effis-warning" class="effis-warning" role="status" hidden>
<svg class="effis-warning-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z"></path>
<line x1="12" y1="9" x2="12" y2="13"></line>
<line x1="12" y1="17" x2="12.01" y2="17"></line>
</svg>
<span id="effis-warning-text"></span>
<button type="button" id="effis-warning-close" data-i18n-aria-label="aria_close" aria-label="Close">×</button>
</div>
<div id="map">
<div class="map-actions-group">
<button
type="button"
id="layers-btn"
class="fab has-tooltip"
data-tooltip-pos="left"
aria-haspopup="dialog"
aria-expanded="false"
aria-controls="layers-sheet"
data-i18n-aria-label="aria_map_layers"
aria-label="Map layers"
>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polygon points="12 2 2 7 12 12 22 7 12 2"></polygon>
<polyline points="2 17 12 22 22 17"></polyline>
<polyline points="2 12 12 17 22 12"></polyline>
</svg>
</button>
<button
type="button"
id="legend-btn"
class="fab has-tooltip"
data-tooltip-pos="left"
data-i18n-aria-label="aria_legend"
aria-label="Map Legend"
>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="9" y1="6" x2="20" y2="6"></line>
<line x1="9" y1="12" x2="20" y2="12"></line>
<line x1="9" y1="18" x2="20" y2="18"></line>
<circle cx="4" cy="6" r="1.5"></circle>
<circle cx="4" cy="12" r="1.5"></circle>
<circle cx="4" cy="18" r="1.5"></circle>
</svg>
</button>
<button
type="button"
id="measure-btn"
class="fab has-tooltip"
data-tooltip-pos="left"
aria-pressed="false"
data-i18n-aria-label="aria_measure_distance"
aria-label="Measure distance"
>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="2" y="7" width="20" height="10" rx="2"></rect>
<line x1="6" y1="7" x2="6" y2="11"></line>
<line x1="10" y1="7" x2="10" y2="13"></line>
<line x1="14" y1="7" x2="14" y2="11"></line>
<line x1="18" y1="7" x2="18" y2="13"></line>
</svg>
</button>
<button
type="button"
id="compass-btn"
class="fab has-tooltip"
data-tooltip-pos="left"
data-i18n-aria-label="aria_compass"
aria-label="Reset orientation to North"
>
<svg id="compass-needle" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polygon points="12 2 16 11 12 9 8 11" fill="#e25822" stroke="#e25822"></polygon>
<polygon points="12 22 16 13 12 15 8 13" fill="currentColor"></polygon>
</svg>
</button>
</div>
<div id="measure-tooltip" class="measure-tooltip" role="status" hidden>
<span id="measure-tooltip-text" data-i18n="measure_choose_start">Click the map to choose a starting point</span>
<button type="button" id="measure-close" data-i18n-aria-label="aria_close" aria-label="Close">×</button>
</div>
<div id="search-container" class="search-container">
<div class="search-input-wrapper">
<input
type="text"
id="search-input"
data-i18n-placeholder="search_placeholder"
placeholder="Search for a place..."
autocomplete="off"
/>
<button type="button" id="search-btn" data-i18n-aria-label="aria_search" aria-label="Search">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg>
</button>
</div>
<ul id="search-results" class="search-results" hidden></ul>
</div>
<div
id="map-loading-indicator"
class="map-loading-indicator"
aria-hidden="true"
></div>
<div
id="provider-fallback-status"
class="provider-fallback-status"
role="status"
aria-live="polite"
hidden
>
<span class="provider-fallback-spinner" aria-hidden="true"></span>
<span data-i18n="provider_fallback_status"
>EFFIS servers are down. Attempting to retrieve data from an
alternative source (NASA FIRMS)…</span
>
</div>
<div id="layers-sheet" class="sheet" role="dialog" aria-modal="true" aria-labelledby="sheet-title" hidden inert>
<div class="sheet-handle"></div>
<div class="sheet-header">
<h2 id="sheet-title" data-i18n="layers_title">Layers</h2>
<button type="button" id="sheet-close" class="icon-btn" data-i18n-aria-label="aria_close" aria-label="Close">×</button>
</div>
<div class="sheet-content">
<section class="sheet-section">
<h3 data-i18n="basemap">Basemap</h3>
<div id="basemap-gallery" class="basemap-gallery" role="radiogroup" data-i18n-aria-label="aria_bg_map" aria-label="Background map">
<button type="button" class="basemap-option" data-basemap="plain" role="radio" aria-checked="true">
<span class="basemap-thumb basemap-thumb-plain"></span>
<span class="basemap-label" data-i18n="basemap_plain">Plain</span>
</button>
<button type="button" class="basemap-option" data-basemap="positron" role="radio" aria-checked="false">
<span class="basemap-thumb basemap-thumb-positron"></span>
<span class="basemap-label" data-i18n="basemap_positron">Positron</span>
</button>
<button type="button" class="basemap-option" data-basemap="bright" role="radio" aria-checked="false">
<span class="basemap-thumb basemap-thumb-bright"></span>
<span class="basemap-label" data-i18n="basemap_bright">Bright</span>
</button>
<button type="button" class="basemap-option" data-basemap="liberty" role="radio" aria-checked="false">
<span class="basemap-thumb basemap-thumb-liberty"></span>
<span class="basemap-label" data-i18n="basemap_liberty">Liberty</span>
</button>
<button type="button" class="basemap-option" data-basemap="dark" role="radio" aria-checked="false">
<span class="basemap-thumb basemap-thumb-dark"></span>
<span class="basemap-label" data-i18n="basemap_dark">Dark</span>
</button>
<button type="button" class="basemap-option" data-basemap="fiord" role="radio" aria-checked="false">
<span class="basemap-thumb basemap-thumb-fiord"></span>
<span class="basemap-label" data-i18n="basemap_fiord">Fiord</span>
</button>
<button type="button" class="basemap-option" data-basemap="satellite" role="radio" aria-checked="false">
<span class="basemap-thumb basemap-thumb-satellite"></span>
<span class="basemap-label" data-i18n="basemap_satellite">Satellite</span>
</button>
<button type="button" class="basemap-option" data-basemap="3d" role="radio" aria-checked="false">
<span class="basemap-thumb basemap-thumb-3d"></span>
<span class="basemap-label" data-i18n="basemap_3d">3D</span>
</button>
</div>
</section>
<section class="sheet-section">
<h3 data-i18n="map_details">Map details</h3>
<div id="mode-toggle" class="segmented" role="group" data-i18n-aria-label="aria_fire_time_range" aria-label="Fire time range">
<button type="button" id="mode-current" class="segmented-btn active" aria-pressed="true" data-i18n="current_fires">
Current fires
</button>
<button type="button" id="mode-past" class="segmented-btn" aria-pressed="false" data-i18n="past_fires">
Past fires
</button>
</div>
<select id="year-select" hidden></select>
<div id="layer-toggle" class="detail-list fire-layer-list" role="group" data-i18n-aria-label="aria_fire_layers" aria-label="Fire layers">
<div class="detail-row detail-row-static">
<span class="detail-row-label" data-i18n="time_period">Time period</span>
<div id="current-range-toggle" class="segmented segmented-sm" role="group" data-i18n-aria-label="aria_time_period" aria-label="Time period">
<button type="button" class="segmented-btn" data-days="1" data-i18n="range_1_day">1 day</button>
<button type="button" class="segmented-btn active" data-days="7" aria-pressed="true" data-i18n="range_7_days">7 days</button>
<button type="button" class="segmented-btn" data-days="30" data-i18n="range_30_days">30 days</button>
</div>
</div>
<label class="detail-row">
<span class="detail-row-label" data-i18n="active_fires">Active fires</span>
<span class="switch">
<input type="checkbox" id="toggle-active-fires" checked />
<span class="switch-track"></span>
</span>
</label>
<div class="detail-row detail-row-static">
<span class="detail-row-label">
<span data-i18n="active_fires_source_label">Active fires data source</span>
<button
type="button"
class="info-btn"
data-i18n-aria-label="active_fires_source_tooltip"
aria-label="EU = EFFIS, NASA = FIRMS"
aria-controls="active-fires-source-info"
aria-describedby="active-fires-source-info"
aria-expanded="false"
>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="10"></circle>
<line x1="12" y1="16" x2="12" y2="12"></line>
<line x1="12" y1="8" x2="12.01" y2="8"></line>
</svg>
</button>
<span
id="active-fires-source-info"
class="source-info-popover"
role="tooltip"
data-i18n="active_fires_source_tooltip"
hidden
>EU = EFFIS, NASA = FIRMS</span>
</span>
<div id="active-fires-source" class="segmented segmented-sm" role="group" data-i18n-aria-label="aria_active_fires_source" aria-label="Active fires data source">
<button type="button" id="active-fires-source-effis" class="segmented-btn active" aria-pressed="true" data-i18n="active_fires_source_effis">EFFIS</button>
<button type="button" id="active-fires-source-firms" class="segmented-btn" aria-pressed="false" data-i18n="active_fires_source_firms">FIRMS</button>
</div>
</div>
<label class="detail-row">
<span class="detail-row-label" data-i18n="burnt_areas">Burnt areas</span>
<span class="switch">
<input type="checkbox" id="toggle-burnt-areas" checked />
<span class="switch-track"></span>
</span>
</label>
</div>
<div class="detail-list place-label-list">
<label class="detail-row">
<span class="detail-row-label" data-i18n="place_names">Place names</span>
<span class="switch">
<input type="checkbox" id="toggle-place-labels" checked />
<span class="switch-track"></span>
</span>
</label>
</div>
</section>
</div>
</div>
</div>
<div id="about-modal" class="modal" role="dialog" aria-modal="true" aria-labelledby="about-title" hidden inert>
<div class="modal-header">
<h2 id="about-title" data-i18n="about_title">About Forest Fires Map</h2>
<button type="button" id="about-close" class="icon-btn" data-i18n-aria-label="aria_close" aria-label="Close">×</button>
</div>
<div class="modal-body" data-i18n="about_content_html"></div>
</div>
<div id="legend-card" class="legend-card open">
<div class="legend-header">
<h3 data-i18n="legend_title">Legend</h3>
<button type="button" id="legend-close" class="legend-close" data-i18n-aria-label="aria_close" aria-label="Close">×</button>
</div>
<div class="legend-body">
<div id="legend-item-active-fires" class="legend-item">
<h4 data-i18n="active_fires">Active Fires</h4>
<span id="legend-active-fires-provider" class="legend-provider-note" data-i18n="legend_active_fires_via_firms" hidden></span>
<img id="legend-img-active-fires" alt="Active Fires Legend" hidden />
<div id="legend-fallback-active-fires" class="legend-fallback" hidden></div>
</div>
<div id="legend-item-burnt-areas" class="legend-item">
<h4 id="legend-title-burnt-areas" data-i18n="burnt_areas">Burnt Areas</h4>
<span id="legend-burnt-areas-provider" class="legend-provider-note" data-i18n="legend_burnt_areas_via_effis"></span>
<img id="legend-img-burnt-areas" alt="Burnt Areas Legend" hidden />
<div id="legend-fallback-burnt-areas" class="legend-fallback" hidden></div>
</div>
<div id="legend-item-active-fires-shapes" class="legend-item legend-fallback" hidden></div>
</div>
</div>
<div id="sheet-backdrop" hidden></div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>