code cleanup
This commit is contained in:
parent
74f1abd6f8
commit
a83afa71cd
19 changed files with 57 additions and 119 deletions
|
|
@ -100,10 +100,8 @@ class Radar extends WeatherDisplay {
|
|||
const urls = sortedPngs.slice(-(this.dopplerRadarImageMax));
|
||||
|
||||
// calculate offsets and sizes
|
||||
let offsetX = 120;
|
||||
let offsetY = 69;
|
||||
offsetX *= 2;
|
||||
offsetY *= 2;
|
||||
const offsetX = 120 * 2;
|
||||
const offsetY = 69 * 2;
|
||||
const sourceXY = utils.getXYFromLatitudeLongitudeMap(this.weatherParameters, offsetX, offsetY);
|
||||
const radarSourceXY = utils.getXYFromLatitudeLongitudeDoppler(this.weatherParameters, offsetX, offsetY);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue