Skip to content

Commit 8352aef

Browse files
committed
manual evac data
1 parent 6d579c4 commit 8352aef

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/components/wildfireMap.ts

+30
Original file line numberDiff line numberDiff line change
@@ -411,4 +411,34 @@ export function makeFireMap(map: maplibregl.Map, chateaus_in_frame: Writable<str
411411
},
412412
minzoom: 6
413413
});
414+
415+
map.addLayer({
416+
source: 'fire_evac_manual',
417+
id: 'fire_evac_manual_txt',
418+
type: 'symbol',
419+
paint: {
420+
'text-color': darkMode ? '#ccaaaa' : '#cc0000'
421+
},
422+
layout: {
423+
'text-field': [
424+
'case',
425+
['==', ['get', 'status'], 'go'],
426+
"Mandatory Evacuation",
427+
['==', ['get', 'status'], 'set'],
428+
'Evacuation Warning',
429+
' '
430+
],
431+
'text-size': [
432+
"interpolate",
433+
["linear"],
434+
['zoom'],
435+
7,
436+
9,
437+
9,
438+
13
439+
],
440+
'text-font': ['Barlow Bold']
441+
},
442+
minzoom: 6
443+
});
414444
}

0 commit comments

Comments
 (0)