-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
721 lines (648 loc) · 53.2 KB
/
Copy pathindex.html
File metadata and controls
721 lines (648 loc) · 53.2 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
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Réseau Routier Départemental - Vaucluse (84)</title>
<!--
dataroads-FR84 — static departmental road map for Vaucluse (FR-84).
UI in French (CD84 audience). Project docs: https://github.com/thepriben/dataroads-FR84
-->
<meta name="description" content="Interactive map of the Vaucluse departmental road network: hierarchy, traffic counts, 2024 crash data, bicycle routes, construction projects, and OSM quality checks. CD84 road-information prototype.">
<meta name="application-name" content="dataroads-FR84">
<link rel="canonical" href="https://thepriben.github.io/dataroads-FR84/">
<meta property="og:type" content="website">
<meta property="og:title" content="dataroads-FR84 — Vaucluse departmental road network">
<meta property="og:description" content="Browser-only map prototype for CD84: departmental roads, traffic counts, crash data, véloroutes, and OpenStreetMap quality panel.">
<meta property="og:url" content="https://thepriben.github.io/dataroads-FR84/">
<meta property="og:site_name" content="dataroads-FR84">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="dataroads-FR84 — Vaucluse departmental road network">
<meta name="twitter:description" content="Static web map for the Vaucluse (84) road network — CD84 Inforoute prototype.">
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=JetBrains+Mono:wght@400;600&family=Oswald:wght@500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script src="https://unpkg.com/leaflet.vectorgrid@1.3.0/dist/Leaflet.VectorGrid.bundled.js"></script>
<script src="https://unpkg.com/three@0.128.0/build/three.min.js"></script>
<script src="https://unpkg.com/three@0.128.0/examples/js/controls/OrbitControls.js"></script>
<link rel="stylesheet" href="css/styles.css?v=20260620-6">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
</head>
<body>
<div class="container">
<div class="header">
<a class="header-logo-link" href="./" title="dataroads-FR84 — accueil">
<img class="header-logo-mark" src="assets/cd84-logo-mark.jpg" width="32" height="32" alt="Département de Vaucluse">
</a>
<div class="header-titles">
<h1>Réseau Routier Départemental</h1>
<div class="subtitle">Département de Vaucluse • Outils Numériques Routiers</div>
</div>
<div class="header-actions">
<button type="button" class="header-legend-btn" id="headerLegendBtn" title="Ouvrir la légende" aria-label="Ouvrir la légende" aria-controls="appSidebar" aria-expanded="false">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/></svg>
</button>
<button type="button" class="header-kpi-btn" id="dashboardHeaderBtn" onclick="toggleDashboardPanel()" title="Chiffres clés du Vaucluse">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 3v18h18"/><path d="M7 16V9"/><path d="M12 16V5"/><path d="M17 16v-6"/></svg>
<span>Chiffres clés</span>
</button>
<div id="weather" class="header-weather" title="Station météo du header (aléatoire)">
<div class="header-weather-icon" id="weatherIcon" aria-hidden="true">…</div>
<div class="header-weather-body">
<div class="header-weather-temp" id="weatherTemp">--°C</div>
<div class="header-weather-desc" id="weatherDesc">Chargement…</div>
<div class="header-weather-station" id="weatherStation">—</div>
</div>
</div>
</div>
</div>
<div class="main-content" id="mainContent">
<div class="sidebar" id="appSidebar">
<div class="sidebar-toolbar">
<span class="sidebar-toolbar-label">Légende</span>
<button type="button" class="sidebar-collapse-btn" id="sidebarCollapseBtn" title="Replier la légende" aria-label="Replier la légende" aria-controls="appSidebar" aria-expanded="true">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="15 18 9 12 15 6"/></svg>
</button>
</div>
<div class="sidebar-scroll">
<section class="legend-family" data-family="factual" data-expanded="false">
<div class="legend-family-header">
<button class="legend-family-expand" type="button" aria-expanded="false">
<span class="legend-family-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"/><circle cx="12" cy="10" r="3"/></svg></span>
<span class="legend-family-label">Cartographie factuelle</span>
</button>
<button class="legend-family-vis" type="button" aria-label="Visibilité de la rubrique">
<span class="family-eye-icon toggle-icon"></span>
<span class="family-vis-count"></span>
</button>
<button class="legend-family-chevron-btn" type="button" aria-label="Déplier la rubrique" aria-expanded="false">
<span class="legend-family-chevron"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><polyline points="6 9 12 15 18 9"/></svg></span>
</button>
</div>
<div class="legend-family-body">
<div class="legend-section">
<div class="legend-title">Territoire</div>
<span class="freshness-badge" id="freshness-boundary" data-schedule-key="static"></span>
<div class="legend-item" style="pointer-events: none;">
<div class="legend-color" style="background: transparent; border: 2px dashed #2C3E50; height: 0px; width: 40px;"></div>
<div class="legend-label">Limite du Vaucluse (84)</div>
<div class="legend-count"></div>
</div>
</div>
<div class="legend-section">
<div class="legend-title" onclick="toggleAllHierarchy()" style="cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none;">
<span>Hiérarchie du Réseau</span>
<span id="hierarchyToggleIcon" class="toggle-icon layer-toggle-icon is-hidden"></span>
</div>
<span class="freshness-badge" id="freshness-hierarchy" data-schedule-key="osm"></span>
<div class="legend-item" data-hierarchy="regional" onclick="toggleHierarchy('regional')" style="cursor: pointer; transition: all 0.3s;">
<div class="legend-color" style="background: #E74C3C; height: 6px;"></div>
<div class="legend-label">Réseau d'intérêt régional</div>
<div class="legend-count">...</div>
</div>
<div class="legend-item" data-hierarchy="territorial" onclick="toggleHierarchy('territorial')" style="cursor: pointer; transition: all 0.3s;">
<div class="legend-color" style="background: #F39C12; height: 5px;"></div>
<div class="legend-label">Réseau de développement territorial</div>
<div class="legend-count">...</div>
</div>
<div class="legend-item" data-hierarchy="local" onclick="toggleHierarchy('local')" style="cursor: pointer; transition: all 0.3s;">
<div class="legend-color" style="background: #3498DB; height: 4px;"></div>
<div class="legend-label">Réseau d'intérêt local</div>
<div class="legend-count">...</div>
</div>
</div>
<div class="legend-section">
<div class="legend-title" onclick="window.toggleBicycleRoutes && window.toggleBicycleRoutes();" style="cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none;">
<span>Véloroutes</span>
<span id="bicycleToggleIcon" class="toggle-icon layer-toggle-icon is-hidden"></span>
</div>
<span class="freshness-badge" id="freshness-bicycle" data-schedule-key="osm"></span>
<div class="legend-km-hint">Linéaire OSM · km</div>
<div class="legend-item legend-item-summary" data-bicycle="total" style="pointer-events: none;">
<div class="legend-color legend-color-spacer"></div>
<div class="legend-label">Total véloroutes</div>
<div class="legend-count legend-count-km" id="count-bicycle-total">-</div>
</div>
<div class="legend-item" data-bicycle="structurante" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color" style="background: #DCD431; height: 5px;"></div>
<div class="legend-label">Via Rhôna (EV17)</div>
<div class="legend-count legend-count-km" id="count-ev17">-</div>
</div>
<div class="legend-item" data-bicycle="structurante" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color" style="background: #9f5723; height: 5px;"></div>
<div class="legend-label">La route de la Méditerranée (EV8)</div>
<div class="legend-count legend-count-km" id="count-ev8">-</div>
</div>
<div class="legend-item" data-bicycle="structurante" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color" style="background: #59D422; height: 5px;"></div>
<div class="legend-label">Via Venaissia (V861)</div>
<div class="legend-count legend-count-km" id="count-v861">-</div>
</div>
<div class="legend-item" data-bicycle="local" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color" style="background: repeating-linear-gradient(90deg, #6C5CE7 0 6px, transparent 6px 10px); height: 4px;"></div>
<div class="legend-label">Itinéraires locaux</div>
<div class="legend-count legend-count-km" id="count-bicycle-local">-</div>
</div>
<div class="legend-count" id="count-bicycle-routes" hidden>-</div>
</div>
<div class="legend-section">
<div class="legend-title" onclick="console.log('CLIC DÉTECTÉ sur Routes en Construction'); window.toggleConstruction && window.toggleConstruction();" style="cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none;">
<span>Routes en Construction</span>
<span id="constructionToggleIcon" class="toggle-icon layer-toggle-icon is-hidden"></span>
</div>
<span class="freshness-badge" id="freshness-construction" data-schedule-key="osm"></span>
<div class="legend-item" data-construction="highway" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color" style="background: none; border: 3px dashed #F39C12; height: 0px; width: 40px;"></div>
<div class="legend-label">Routes en construction</div>
<div class="legend-count" id="count-construction">-</div>
</div>
<div class="legend-item" data-construction="proposed" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color" style="background: none; border: 2px dotted #9B59B6; height: 0px; width: 40px;"></div>
<div class="legend-label">Projets de routes</div>
<div class="legend-count" id="count-proposed">-</div>
</div>
</div>
<div class="legend-section">
<div class="legend-title" onclick="toggleCities()" style="cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none;">
<span>Villes Principales</span>
<span id="citiesToggleIcon" class="toggle-icon layer-toggle-icon is-hidden"></span>
</div>
<div class="legend-item" data-city="main" style="pointer-events: none;">
<div class="legend-color" style="background: #2C3E50; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff;"></div>
<div class="legend-label">Chefs-lieux et grandes villes</div>
<div class="legend-count">7</div>
</div>
</div>
<div class="legend-section" id="limitationsLegend" style="display:none;">
<div class="legend-title">Limitations & Restrictions</div>
<!-- Contenu généré dynamiquement par updateLimitationsLegend() -->
</div>
</div>
</section>
<section class="legend-family" data-family="stats" data-expanded="false">
<div class="legend-family-header">
<button class="legend-family-expand" type="button" aria-expanded="false">
<span class="legend-family-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M3 3v18h18"/><path d="M18 17V9"/><path d="M13 17V5"/><path d="M8 17v-3"/></svg></span>
<span class="legend-family-label">Données statistiques</span>
</button>
<button class="legend-family-vis" type="button" aria-label="Visibilité de la rubrique">
<span class="family-eye-icon toggle-icon"></span>
<span class="family-vis-count"></span>
</button>
<button class="legend-family-chevron-btn" type="button" aria-label="Déplier la rubrique" aria-expanded="false">
<span class="legend-family-chevron"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><polyline points="6 9 12 15 18 9"/></svg></span>
</button>
</div>
<div class="legend-family-body">
<div class="legend-section">
<div class="legend-title" onclick="toggleAccidents()" style="cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none;">
<span>Accidentologie</span>
<span id="accidentToggleIcon" class="toggle-icon layer-toggle-icon is-hidden"></span>
</div>
<span class="freshness-badge" id="freshness-accidents" data-schedule-key="static"></span>
<div class="legend-item" data-accident="mortel" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color" style="background: #000000; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff;"></div>
<div class="legend-label">Accident mortel</div>
<div class="legend-count" id="count-fatal">-</div>
</div>
<div class="legend-item" data-accident="grave" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color" style="background: #E74C3C; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff;"></div>
<div class="legend-label">Blessés hospitalisés</div>
<div class="legend-count" id="count-hospitalized">-</div>
</div>
<div class="legend-item" data-accident="leger" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color" style="background: #F39C12; width: 8px; height: 8px; border-radius: 50%; border: 2px solid #fff;"></div>
<div class="legend-label">Blessés légers</div>
<div class="legend-count" id="count-light">-</div>
</div>
</div>
<div class="legend-section">
<div class="legend-title" onclick="toggleTraffic()" style="cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; font-weight: 600;">
<span>Stations de Comptage</span>
<span id="trafficToggleIcon" class="toggle-icon layer-toggle-icon is-hidden"></span>
</div>
<span class="freshness-badge" id="freshness-traffic" data-schedule-key="external"></span>
<div class="legend-item" data-traffic="high" style="opacity: 0.5;">
<div class="legend-color" style="background: #A4133C; width: 12px; height: 12px; border-radius: 50%;"></div>
<div class="legend-label">Trafic élevé (>20k véh/j)</div>
<div class="legend-count" id="count-high">-</div>
</div>
<div class="legend-item" data-traffic="medium" style="opacity: 0.5;">
<div class="legend-color" style="background: #E5547F; width: 10px; height: 10px; border-radius: 50%;"></div>
<div class="legend-label">Trafic moyen (5k-20k)</div>
<div class="legend-count" id="count-medium">-</div>
</div>
<div class="legend-item" data-traffic="low" style="opacity: 0.5;">
<div class="legend-color" style="background: #FAD2DE; width: 8px; height: 8px; border-radius: 50%; border: 1px solid #D88AA0;"></div>
<div class="legend-label">Trafic faible (<5k véh/j)</div>
<div class="legend-count" id="count-low">-</div>
</div>
</div>
</div>
</section>
<section class="legend-family" data-family="realtime" data-expanded="false">
<div class="legend-family-header">
<button class="legend-family-expand" type="button" aria-expanded="false">
<span class="legend-family-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M22 12h-4l-3 9L9 3l-3 9H2"/></svg></span>
<span class="legend-family-label">Temps réel</span>
</button>
<button class="legend-family-vis" type="button" aria-label="Visibilité de la rubrique">
<span class="family-eye-icon toggle-icon"></span>
<span class="family-vis-count"></span>
</button>
<button class="legend-family-chevron-btn" type="button" aria-label="Déplier la rubrique" aria-expanded="false">
<span class="legend-family-chevron"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><polyline points="6 9 12 15 18 9"/></svg></span>
</button>
</div>
<div class="legend-family-body">
<div class="legend-section">
<div class="legend-title" onclick="window.toggleWeatherStations && window.toggleWeatherStations();" style="cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none;">
<span>Stations météo</span>
<span id="weatherStationsToggleIcon" class="toggle-icon layer-toggle-icon is-hidden"></span>
</div>
<span class="freshness-badge" id="freshness-weather-stations" data-schedule-key="live"></span>
<div class="legend-item legend-item-summary" data-weather-station="total" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color weather-station-swatch" aria-hidden="true"></div>
<div class="legend-label">Stations Open-Meteo</div>
<div class="legend-count" id="count-weather-stations">-</div>
</div>
</div>
<div class="legend-section">
<div class="legend-title" onclick="toggleBisonFute()" style="cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; font-weight: 600;">
<span>Événements routiers</span>
<span id="bisonFuteToggleIcon" class="toggle-icon layer-toggle-icon is-hidden"></span>
</div>
<span class="freshness-badge" id="freshness-bison-fute" data-schedule-key="external"></span>
<div class="legend-item" data-bison-fute="travaux" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color legend-swatch-emoji" aria-hidden="true">🚧</div>
<div class="legend-label">Travaux</div>
<div class="legend-count"></div>
</div>
<div class="legend-item" data-bison-fute="bouchons" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color legend-swatch-emoji" aria-hidden="true">🚗</div>
<div class="legend-label">Bouchons</div>
<div class="legend-count"></div>
</div>
<div class="legend-item" data-bison-fute="accidents" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color legend-swatch-emoji" aria-hidden="true">⚠️</div>
<div class="legend-label">Accidents en cours</div>
<div class="legend-count"></div>
</div>
</div>
</div>
</section>
<section class="legend-family" data-family="incubator" data-expanded="false">
<div class="legend-family-header">
<button class="legend-family-expand" type="button" aria-expanded="false">
<span class="legend-family-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M9 18h6"/><path d="M10 22h4"/><path d="M12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z"/></svg></span>
<span class="legend-family-label">Incubateur</span>
</button>
<button class="legend-family-vis" type="button" aria-label="Visibilité de la rubrique">
<span class="family-eye-icon toggle-icon"></span>
<span class="family-vis-count"></span>
</button>
<button class="legend-family-chevron-btn" type="button" aria-label="Déplier la rubrique" aria-expanded="false">
<span class="legend-family-chevron"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><polyline points="6 9 12 15 18 9"/></svg></span>
</button>
</div>
<div class="legend-family-body">
<div class="legend-section">
<div class="legend-title" onclick="window.toggleBridges && window.toggleBridges();" style="cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none;">
<span>Couche ponts</span>
<span id="bridgesToggleIcon" class="toggle-icon layer-toggle-icon is-hidden"></span>
</div>
<span class="freshness-badge" id="freshness-bridges" data-schedule-key="incubator"></span>
<div class="legend-item legend-item-summary" data-bridge="total" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color" style="background: rgba(44, 62, 80, 0.12); border: 2px solid #2C3E50; height: 13px; width: 24px; border-radius: 3px;"></div>
<div class="legend-label">Ponts OSM</div>
<div class="legend-count" id="count-bridges-total">-</div>
</div>
</div>
<div class="bridge-zoom-hint" id="bridgeZoomHint" hidden></div>
<div class="legend-section">
<div class="legend-title" onclick="window.toggleRoadSigns && window.toggleRoadSigns();" style="cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none;">
<span>Panneaux (stop / cédez)</span>
<span id="roadSignsToggleIcon" class="toggle-icon layer-toggle-icon is-hidden"></span>
</div>
<span class="freshness-badge" id="freshness-road-signs" data-schedule-key="incubator"></span>
<div class="legend-item" data-road-sign="stop" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color road-sign-swatch road-sign-swatch--stop"></div>
<div class="legend-label">Stop</div>
<div class="legend-count" id="count-road-signs-stop">-</div>
</div>
<div class="legend-item" data-road-sign="yield" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color road-sign-swatch road-sign-swatch--yield"></div>
<div class="legend-label">Cédez le passage</div>
<div class="legend-count" id="count-road-signs-yield">-</div>
</div>
<div class="sensitive-zones-hint"><code>highway=stop</code> / <code>give_way</code></div>
</div>
<div class="legend-section">
<div class="legend-title" onclick="window.toggleGuideposts && window.toggleGuideposts();" style="cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none;">
<span class="legend-title-stacked">Panneaux<small class="legend-title-sub">directionnels</small></span>
<span id="guidepostsToggleIcon" class="toggle-icon layer-toggle-icon is-hidden"></span>
</div>
<span class="freshness-badge" id="freshness-guideposts" data-schedule-key="incubator"></span>
<div class="legend-item" data-guidepost="guidepost" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color guidepost-swatch"></div>
<div class="legend-label">Mâts directionnels (rando, vélo…)</div>
<div class="legend-count" id="count-guideposts">-</div>
</div>
<div class="sensitive-zones-hint"><code>information=guidepost</code></div>
</div>
<div class="legend-section">
<div class="legend-title" onclick="window.toggleSensitiveZones && window.toggleSensitiveZones();" style="cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none;">
<span>Espaces naturels sensibles</span>
<span id="sensitiveZonesToggleIcon" class="toggle-icon layer-toggle-icon is-hidden"></span>
</div>
<div class="legend-item" data-sensitive-zone="ens" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color sensitive-zone-swatch"></div>
<div class="legend-label">ENS CD84 (polygones)</div>
<div class="legend-count" id="count-sensitive-zones">-</div>
</div>
</div>
<div class="legend-section">
<div class="legend-title" onclick="window.toggleInaturalistSensitives && window.toggleInaturalistSensitives();" style="cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none;">
<span>Observations iNaturalist</span>
<span id="inaturalistSensitivesToggleIcon" class="toggle-icon layer-toggle-icon is-hidden"></span>
</div>
<div class="legend-item" data-inaturalist="observation" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color inaturalist-swatch"></div>
<div class="legend-label">Dans les ENS</div>
<div class="legend-count" id="count-inaturalist-sensitive">-</div>
</div>
</div>
<div class="legend-section">
<div class="legend-title" onclick="window.toggleWebcams && window.toggleWebcams();" style="cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none;">
<span>Webcams</span>
<span id="webcamsToggleIcon" class="toggle-icon layer-toggle-icon is-hidden"></span>
</div>
<div class="legend-item" data-webcam="traffic" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color webcam-swatch webcam-swatch--traffic"></div>
<div class="legend-label">Trafic CD84</div>
<div class="legend-count" id="count-webcams-traffic">-</div>
</div>
<div class="legend-item" data-webcam="mountain" style="pointer-events: none; opacity: 0.5;">
<div class="legend-color webcam-swatch webcam-swatch--mountain"></div>
<div class="legend-label">Mont Ventoux</div>
<div class="legend-count" id="count-webcams-mountain">-</div>
</div>
</div>
</div>
</section>
<section class="legend-family" data-family="tools" data-expanded="false">
<div class="legend-family-header">
<button class="legend-family-expand" type="button" aria-expanded="false">
<span class="legend-family-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/></svg></span>
<span class="legend-family-label">Outils & méta</span>
</button>
<button class="legend-family-chevron-btn" type="button" aria-label="Déplier la rubrique" aria-expanded="false">
<span class="legend-family-chevron"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><polyline points="6 9 12 15 18 9"/></svg></span>
</button>
</div>
<div class="legend-family-body">
<div class="legend-section">
<div class="legend-title">Rechercher une Route</div>
<input type="text" id="road-search" placeholder="Ex: D900, D4..."
style="width: 100%; padding: 8px; border: 1px solid #dfe6e9; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; margin-bottom: 10px;">
<div id="road-list" style="max-height: 300px; overflow-y: auto; background: white; border-radius: 6px; border: 1px solid #dfe6e9;">
<div style="padding: 20px; text-align: center; color: #999; font-size: 0.85rem;">
Chargement des routes...
</div>
</div>
</div>
<div class="legend-section" id="road-info-section" style="display: none;">
<div class="legend-title">Informations Route</div>
<div id="road-info-panel" style="background: white; border-radius: 8px; border: 1px solid #dfe6e9; padding: 15px;">
</div>
</div>
<div class="legend-section">
<div class="legend-title quality-section-header">
<span>Qualité OSM / Wikidata</span>
<button type="button" class="sidebar-quality-btn" id="qualityBtn" onclick="toggleQualityPanel()" title="Ouvrir le panneau détaillé Qualité OSM (Wikidata, relations)">
<span class="sidebar-quality-btn-icon" aria-hidden="true">🔍</span>
<span class="sidebar-quality-btn-label">Panneau détaillé</span>
</button>
</div>
<span class="freshness-badge" id="freshness-wikidata" data-schedule-key="wikidata"></span>
<div id="wikidataSummary" style="background:white;border-radius:8px;border:1px solid #dfe6e9;padding:10px;">
<div style="font-size:0.8rem;color:#7f8c8d;">Calcul en cours…</div>
</div>
</div>
<div class="legend-section">
<div class="legend-title">Informations Réseau</div>
<div class="network-stats" id="networkStatsBox">
<div class="network-tile">
<div class="network-tile-value" id="networkStat-refs">…</div>
<div class="network-tile-label">Routes</div>
</div>
<div class="network-tile">
<div class="network-tile-value" id="networkStat-segments">…</div>
<div class="network-tile-label">Tronçons OSM</div>
</div>
<div class="network-tile network-tile-wide">
<div class="network-tile-value" id="networkStat-length">…</div>
<div class="network-tile-label">Longueur cumulée</div>
</div>
<div class="network-tile network-tile-wide">
<div class="network-tile-value" id="networkStat-traffic">…</div>
<div class="network-tile-label">Trafic MJA min / max</div>
</div>
<div class="network-tile">
<div class="network-tile-value" id="networkStat-bridges">…</div>
<div class="network-tile-label">Ponts</div>
</div>
<div class="network-tile">
<div class="network-tile-value" id="networkStat-tunnels">…</div>
<div class="network-tile-label">Tunnels</div>
</div>
</div>
</div>
<div class="legend-section">
<div class="legend-title">Formule de rafraîchissement</div>
<div class="refresh-formula">
<div class="refresh-formula-row" data-schedule-key="osm">
<div>
<div class="refresh-formula-label">OSM (routes, véloroutes, communes, constructions)</div>
<div style="font-size:0.7rem;color:#7f8c8d;">Source : Overpass → workflow GitHub Actions</div>
</div>
<div class="refresh-formula-meta" id="refreshMetaOsm">
Bi-hebdo · lun. & jeu. 03:17 UTC<br>—
</div>
</div>
<div class="refresh-formula-row" data-schedule-key="wikidata">
<div>
<div class="refresh-formula-label">Wikidata (liens & couverture)</div>
<div style="font-size:0.7rem;color:#7f8c8d;">Tags OSM + infoboxes live navigateur</div>
</div>
<div class="refresh-formula-meta" id="refreshMetaWikidata">
Bi-hebdo · lun. & jeu. 03:17 UTC<br>—
</div>
</div>
<div class="refresh-formula-row" data-schedule-key="external">
<div>
<div class="refresh-formula-label">Externe (comptages, événements)</div>
<div style="font-size:0.7rem;color:#7f8c8d;">data.gouv.fr · Bison Futé DATEX II</div>
</div>
<div class="refresh-formula-meta" id="refreshMetaExternal">
Toutes les 3 h · xx:23 UTC<br>—
</div>
</div>
<div class="refresh-formula-row" data-schedule-key="incubator">
<div>
<div class="refresh-formula-label">Incubateur (ponts OSM)</div>
<div style="font-size:0.7rem;color:#7f8c8d;">Workflow GitHub Actions</div>
</div>
<div class="refresh-formula-meta" id="refreshMetaIncubator">
Tous les 5 jours<br>—
</div>
</div>
<div class="refresh-formula-row" data-schedule-key="live">
<div>
<div class="refresh-formula-label">Météo Open-Meteo</div>
<div style="font-size:0.7rem;color:#7f8c8d;">Live navigateur</div>
</div>
<div class="refresh-formula-meta">Toutes les 10 min</div>
</div>
<div class="refresh-formula-row" data-schedule-key="static">
<div>
<div class="refresh-formula-label">Statique (limite 84, accidents)</div>
<div style="font-size:0.7rem;color:#7f8c8d;">Snapshot versionné dans le dépôt</div>
</div>
<div class="refresh-formula-meta">Figé · mise à jour manuelle</div>
</div>
</div>
<div id="externalRefreshStatus" style="margin-top: 12px; padding: 9px; background: #eef6ff; border-radius: 6px; font-size: 0.7rem; color: #2C3E50; text-align: center; line-height: 1.4;">
Chargement de l'état des sources…
</div>
</div>
</div>
</section>
</div>
<div class="sidebar-foot">
<a class="sidebar-foot-repo" href="https://github.com/thepriben/dataroads-FR84" target="_blank" rel="noopener noreferrer">dataroads-FR84</a>
<div class="sidebar-foot-meta">
<span class="sidebar-foot-version" id="siteVersion" aria-label="Version de l'application"></span>
<a class="sidebar-foot-guide" href="guide.html" title="Guide utilisateur">Guide</a>
<a class="sidebar-foot-guide-en" href="guide.en.html" title="User guide (English)">EN</a>
</div>
</div>
<div class="sidebar-drag-handle" id="sidebarDragHandle" aria-hidden="true" title="Glisser pour replier"></div>
</div>
<div class="sidebar-resizer" id="sidebarResizer" role="separator" aria-orientation="vertical" aria-label="Redimensionner la barre latérale" tabindex="0" title="Glissez pour redimensionner · double-clic pour replier"></div>
<div class="sidebar-backdrop" id="sidebarBackdrop" aria-hidden="true"></div>
<div class="map-stage">
<button type="button" class="sidebar-gutter" id="sidebarGutterBtn" title="Afficher la légende" aria-label="Afficher la légende" aria-controls="appSidebar" aria-expanded="false">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.25" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 18 15 12 9 6"/></svg>
<span class="sidebar-gutter-label" aria-hidden="true">Légende</span>
</button>
<!-- Barre d'outils unifiée : modes spéciaux groupés en haut à droite -->
<div class="map-toolbar" role="toolbar" aria-label="Modes d'affichage spéciaux">
<button type="button" class="map-tool map-tool--compact map-tool--legend" id="mapLegendBtn" title="Afficher ou masquer la légende" aria-label="Afficher ou masquer la légende" aria-controls="appSidebar" aria-expanded="false">
<span class="map-tool-icon map-tool-icon--svg" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/></svg></span>
</button>
<button type="button" class="map-tool map-tool--compact" onclick="window.resetMapView && window.resetMapView()" id="mapResetBtn" title="Revenir à la vue initiale du département" aria-label="Revenir à la vue initiale du département">
<span class="map-tool-icon map-tool-icon--svg" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 10.5 12 4l9 6.5"/><path d="M5 10v9h14v-9"/><path d="M10 21v-6h4v6"/></svg></span>
</button>
<button type="button" class="map-tool" onclick="window.toggleTraffic && window.toggleTraffic()" id="wazeBtn" title="Afficher les stations de comptage CD84 (couche statistiques)">
<span class="map-tool-icon map-tool-icon--svg" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20V10"/><path d="M10 20V4"/><path d="M16 20v-8"/><path d="M22 20V8"/></svg></span>
<span class="map-tool-label">Comptages</span>
</button>
<!-- Convois exceptionnels : bouton désactivé (peu d'apport, redondant avec les filtres de hiérarchie). Conservé masqué pour réactivation éventuelle. -->
<button type="button" class="map-tool" id="convoiBtn" title="Itinéraires adaptés aux convois exceptionnels" hidden aria-hidden="true" style="display: none;">
<span class="map-tool-icon map-tool-icon--svg" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M3 13h13l3-5H8l-2 5Z"/><path d="M7 18h2"/><path d="M15 18h2"/><path d="M16 13v5"/><path d="M8 13v5"/></svg></span>
<span class="map-tool-label">Convois except.</span>
</button>
<button type="button" class="map-tool" onclick="toggleLimitationsMode()" id="limitsBtn" title="Limitations de vitesse et restrictions ponts/PL">
<span class="map-tool-icon map-tool-icon--svg" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg></span>
<span class="map-tool-label">Limitations</span>
</button>
<button type="button" class="map-tool map-tool--compact map-tool--mapillary" onclick="window.toggleMapillaryCoverage && window.toggleMapillaryCoverage()" id="mapillaryBtn" title="Couverture photo Mapillary (traces) — fiabilise les panneaux cliquables" aria-label="Couverture photo Mapillary">
<span class="map-tool-mly" aria-hidden="true">M</span>
</button>
<button type="button" class="map-tool map-tool--compact map-tool--panoramax" onclick="window.togglePanoramaxCoverage && window.togglePanoramaxCoverage()" id="panoramaxBtn" title="Couverture photo Panoramax (traces)" aria-label="Couverture photo Panoramax">
<span class="map-tool-pnx" aria-hidden="true">P</span>
</button>
</div>
<!-- Panneau de qualité des données -->
<div class="quality-panel" id="qualityPanel">
<div class="quality-header">
<h3>📊 Qualité des Données OSM</h3>
<button class="quality-close" onclick="toggleQualityPanel()">×</button>
</div>
<div class="quality-content" id="qualityContent">
<p style="text-align: center; color: #999; padding: 20px;">
Chargement des métriques...
</p>
</div>
</div>
<div class="bridge-viewer-panel" id="bridgeViewerPanel" role="dialog" aria-labelledby="bridgeViewerTitle" aria-modal="false">
<div class="bridge-viewer-header">
<div class="bridge-viewer-heading">
<p class="bridge-viewer-kicker">Analyse · ouvrage d'art</p>
<h2 id="bridgeViewerTitle">Ouvrage d'art</h2>
<p id="bridgeViewerSubtitle">Photos de terrain</p>
</div>
<button type="button" class="bridge-viewer-close" onclick="window.closeBridgeViewer && window.closeBridgeViewer();" aria-label="Fermer la visionneuse">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>
</button>
</div>
<div class="bridge-viewer-content" id="bridgeViewerContent"></div>
</div>
<div id="map"></div>
</div>
</div>
<div class="dashboard-overlay" id="dashboardOverlay" aria-hidden="true" onclick="if (event.target === this) toggleDashboardPanel(false)">
<div class="dashboard-panel" id="dashboardPanel" role="dialog" aria-labelledby="dashboardTitle" aria-modal="true">
<div class="dashboard-header">
<div>
<h2 id="dashboardTitle">Chiffres clés — Vaucluse (84)</h2>
<p class="dashboard-subtitle">Indicateurs réseau et données croisées</p>
</div>
<button type="button" class="dashboard-close" onclick="toggleDashboardPanel(false)" aria-label="Fermer le tableau de bord">×</button>
</div>
<div class="dashboard-content" id="dashboardContent"></div>
</div>
</div>
<div class="bridge3d-overlay" id="bridge3dOverlay" aria-hidden="true" role="dialog" aria-modal="true" aria-labelledby="bridge3dTitle" onclick="if (event.target === this) window.closeBridgeViewer && window.closeBridgeViewer()">
<div class="bridge3d-panel">
<div class="bridge3d-header">
<div class="bridge3d-heading">
<p class="bridge3d-kicker">Ouvrage d'art · vue 3D générée</p>
<h2 id="bridge3dTitle">Pont</h2>
<p class="bridge3d-subtitle" id="bridge3dSubtitle"></p>
</div>
<a class="bridge3d-osm" id="bridge3dOsm" href="#" target="_blank" rel="noopener noreferrer" style="display:none;">OpenStreetMap →</a>
<button type="button" class="bridge3d-close" onclick="window.closeBridgeViewer && window.closeBridgeViewer()" aria-label="Fermer la vue 3D">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>
</button>
</div>
<div class="bridge3d-stage" id="bridge3dStage">
<div class="bridge3d-canvas-wrap" id="bridge3dCanvasWrap"></div>
<div class="bridge3d-meta" id="bridge3dMeta"></div>
<div class="bridge3d-card" id="bridge3dCard" style="display:none;"></div>
<div class="bridge3d-preview" id="bridge3dPreview" style="display:none;"></div>
<div class="bridge3d-selected" id="bridge3dSelected" style="display:none;"></div>
<div class="bridge3d-hint" id="bridge3dHint">Glissez pour tourner · molette pour zoomer · cliquez une photo pour l'agrandir</div>
</div>
<div class="bridge3d-gallery" id="bridge3dGallery"></div>
</div>
</div>
</div>
<script src="js/config.js?v=20260620-6"></script>
<script>
(function () {
var el = document.getElementById('siteVersion');
if (el && window.APP_CONFIG && window.APP_CONFIG.version) {
el.textContent = 'v' + window.APP_CONFIG.version;
}
})();
</script>
<script src="js/api.js?v=20260620-5"></script>
<script src="js/dashboard.js?v=20260607-1"></script>
<script src="js/app.js?v=20260620-6"></script>
<script src="js/bridge3d.js?v=20260620-3"></script>
</body>
</html>