Draw and inspect the same wind forecast when switching globes

This commit is contained in:
German Khokhlov committed 2026-11-03 03:34:25 +04:00
1 parent d7b3d45135
commit 2b4955c817
11 files changed
+555 -30

No files matched your search

+2 -2
View File
@@ -14,9 +14,9 @@ import { shellLift } from '../shellRendering.js';
const KEY = 'gevObservedWeather';
const owners = new WeakMap();
const products = ['Satellite', 'Radar', 'Lightning'];
const products = ['Wind', 'Satellite', 'Radar', 'Lightning'];
const slotFor = (p) =>
p === 'radar' ? 'Radar' : p === 'lightning' ? 'Lightning' : 'Satellite';
p === 'wind' ? 'Wind' : p === 'radar' ? 'Radar' : p === 'lightning' ? 'Lightning' : 'Satellite';
const emptyRect = [0, 0, -1, -1];
const rectArray = (r) => (r ? [r.west, r.south, r.east, r.north] : emptyRect);