Files
worldmonitor/server
Elie Habib d3dcc53c85 feat(map): merge NOTAM closures into Aviation layer (#1363)
* feat(map): merge NOTAM closures into Aviation layer, fix click popup

Consolidate the separate "NOTAM Closures" toggle into the "Aviation"
layer so users get a single checkbox for flight delays, NOTAM rings,
and aircraft positions.

- Remove notamOverlay from MapLayers, all variants, URL state, registry
- Render NOTAM rings under flights toggle in both DeckGL and Globe maps
- Wire notam-overlay-layer click to flight popup (was missing entirely)
- Broaden NOTAM detection: restrictions (RA/RO, TFR, danger areas)
  render as major severity; closures remain severe
- Add restrictedIcaos to LoadedNotamResult for severity distinction

* fix(aviation): separate restriction NOTAMs from closures in all consumers

Restrictions (TFR, danger areas) were being added to closedIcaoCodes,
causing ops-summary to report them as full closures and CII scoring to
apply the closure penalty (+20 instead of +10).

- Keep closedIcaoCodes for real closures only, restrictedIcaoCodes separate
- Restrictions use delayType 'general' (not 'closure') so downstream code
  (popup labels, globe rings, CII scoring) treats them correctly
- ops-summary now shows RESTRICTED flag instead of CLOSED for restrictions
- buildNotamAlert/mergeNotamWithExistingAlert accept delayType param
2026-03-10 08:17:23 +04:00
..