diff --git a/Examples/PIP-Weather-Radar/README.md b/Examples/PIP-Weather-Radar/README.md index d70be0b..40df8d2 100644 --- a/Examples/PIP-Weather-Radar/README.md +++ b/Examples/PIP-Weather-Radar/README.md @@ -97,6 +97,7 @@ NODE_TLS_REJECT_UNAUTHORIZED=0 node radar.js | `mode` | `"on_warning"` | `"on_warning"` = show only during qualifying warnings; `"always"` = always on | | `lat`, `lon` | — | Map center **and** the NWS `?point=` used to detect warnings | | `zoom` | `8` | Leaflet zoom; ~8 ≈ a county/metro | +| `max_counties` | `2` | How far the auto-framing may pull back from the centre, in county-widths. Warnings inside that box are framed; one entirely outside it is not chased, so a distant storm can't zoom your area down to nothing. | | `area_label` | — | Shown in the overlay header | | `states` | `[]` | 2-letter codes used to fetch warning polygons (`?area=ST`). Empty → `?point=` | | `events` | Tornado/Severe Tstorm/Flash Flood/Flood Warning | Which warnings qualify & are drawn | diff --git a/Examples/PIP-Weather-Radar/config.example.json b/Examples/PIP-Weather-Radar/config.example.json index c2e0259..8bfef5d 100644 --- a/Examples/PIP-Weather-Radar/config.example.json +++ b/Examples/PIP-Weather-Radar/config.example.json @@ -10,6 +10,7 @@ "lat": 43.0389, "lon": -87.9065, "zoom": 8, + "max_counties": 2, "states": ["WI"], "events": ["Tornado Warning", "Severe Thunderstorm Warning", "Flash Flood Warning", "Flood Warning"], diff --git a/Examples/PIP-Weather-Radar/radar-overlay.html b/Examples/PIP-Weather-Radar/radar-overlay.html index b2afed7..a36baec 100644 --- a/Examples/PIP-Weather-Radar/radar-overlay.html +++ b/Examples/PIP-Weather-Radar/radar-overlay.html @@ -51,6 +51,9 @@
- + +