mirror of
https://github.com/screentinker/screentinker.git
synced 2026-08-14 06:16:20 -06:00
The chips are labelled "in view" but were tallied from the alert query result. Alerts are fetched per state — one request instead of one per county — so the feed routinely carries warnings hundreds of miles away. A Kenosha-centred map reported "2x Tornado Warning" for tornadoes in Calumet and Winnebago, neither of them on screen and neither reachable, since the view is bounded to two counties. Warnings are now sorted into three states rather than two: - Unreachable: outside the bounded frame the map can ever show. Not drawn, not counted. This is what produced the phantom tornado count. - Reachable but off-screen: drawn, so it can slide into view at the edge as the frame widens, but not claimed as "in view". - On screen: tallied into the chips, recomputed on moveend/zoomend, because framing settles asynchronously and it is the settled zoom that decides what "in view" means. Bounds come off the GeoJSON coordinates directly, covering every ring of a MultiPolygon, rather than building a throwaway layer per feature to ask Leaflet for an extent. Asset version bumped to 3 so players holding the cached copy pick this up. |
||
|---|---|---|
| .. | ||
| PIP-Air-Quality | ||
| PIP-Announce-Broadcast | ||
| PIP-CAP-AU-Alert-Monitor | ||
| PIP-Crypto-Ticker | ||
| PIP-Event-Countdown | ||
| PIP-Fundraiser-Thermometer | ||
| PIP-Incident-Webhook | ||
| PIP-News-Ticker | ||
| PIP-QR-Rotator | ||
| PIP-Room-Status-Calendar | ||
| PIP-USD-Cap-Alert-Monitor-NOAA | ||
| PIP-Weather-Radar | ||
| PIP-Weather-Widget | ||
| PIP-Welcome-Board | ||