Slightly denser display of regional cities on map #170

This commit is contained in:
Matt Walsh
2025-12-09 05:02:58 +00:00
parent 9b12255e0a
commit 18633708f9
3 changed files with 16 additions and 1 deletions

View File

@@ -729,6 +729,16 @@
"wfo": "LMK" "wfo": "LMK"
} }
}, },
{
"city": "Lubbock",
"lat": 33.5836,
"lon": -101.8549,
"point": {
"x": 49,
"y": 34,
"wfo": "LUB"
}
},
{ {
"city": "Manchester", "city": "Manchester",
"lat": 42.9956, "lat": 42.9956,

View File

@@ -364,6 +364,11 @@
"lat": 38.2542, "lat": 38.2542,
"lon": -85.7594 "lon": -85.7594
}, },
{
"city": "Lubbock",
"lat": 33.5836,
"lon": -101.8549
},
{ {
"city": "Manchester", "city": "Manchester",
"lat": 42.9956, "lat": 42.9956,

View File

@@ -51,7 +51,7 @@ class RegionalForecast extends WeatherDisplay {
const minMaxLatLon = utils.getMinMaxLatitudeLongitude(sourceXY.x, sourceXY.y, mapOffsetXY.x, mapOffsetXY.y, this.weatherParameters.state); const minMaxLatLon = utils.getMinMaxLatitudeLongitude(sourceXY.x, sourceXY.y, mapOffsetXY.x, mapOffsetXY.y, this.weatherParameters.state);
// get a target distance // get a target distance
let targetDistance = 2.5; let targetDistance = 2.4;
if (this.weatherParameters.state === 'HI') targetDistance = 1; if (this.weatherParameters.state === 'HI') targetDistance = 1;
// make station info into an array // make station info into an array