Wires John's paid ADS-B Exchange RapidAPI feed ($10/mo, ~10k req/month) into a
new layer showing the military traffic OpenSky/FR24 hide (C-17 "Reach" airlift,
tankers, the Area 51 "Janet" shuttle, etc.).
- serve.py: proxy/adsbx-mil injects the x-rapidapi-key/host headers SERVER-SIDE
(key read from gitignored adsbxcredentials.json, never in the browser) and
HARD-caches /v2/mil/ for 5 min — the quota guard: <=~288 upstream calls/day
(~8.6k/month) no matter how many tabs poll. Stale-on-error; 503 if unconfigured.
- js/layers/military.js: BillboardCollection like the civilian layer but a
distinct red; live-only (no history feed), 5-min poll matched to the cache.
ADSBx altitude is FEET (→metres for Cesium). Emergency squawks (7500/7600/
7700) highlight brighter+bigger and flip the HUD status to err. Click overlay
shows type / tail / altitude / speed / squawk.
- config.js: adsbx block + militaryReal/militaryEmerg colours.
Verified in dev: proxy miss→hit (5-min cache, key not leaked), 412 military
aircraft render over CONUS, click RCH042 → C17 / 99-0062 / 34000ft / 424kt,
zero console errors. adsbxcredentials.json stays gitignored + server-side.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>