feat(storm-intel): configurable pin radius, fix blank map, 6mo default, remove mock polygons

- Map always renders (removed blank overlay when no nearby events)
- Pin radius is now user-configurable (default 5 mi, input shown in pin strip)
- Default date range changed to 6 months for faster initial load
- IEM fetch window narrowed to 6 months to match default
- MOCK_STORM_EVENTS cleared (IEM provides real NWS polygon data)
This commit is contained in:
Satyam-Rastogi
2026-05-19 00:47:43 +05:30
parent 1b7af0699d
commit a6d3997d07
3 changed files with 50 additions and 200 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ function featureToEvent(feature, idx) {
async function fetchIEMEvents() {
const now = new Date();
const cutoff = new Date(now.getTime() - 36 * 30.44 * 86400000);
const cutoff = new Date(now.getTime() - 6 * 30.44 * 86400000);
const url = `${IEM_SBW}?sts=${encodeURIComponent(cutoff.toISOString())}&ets=${encodeURIComponent(now.toISOString())}&wfo=${WFO}`;
const res = await fetch(url);