mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 01:02:23 +00:00
Draw and inspect the same wind forecast when switching globes
This commit is contained in:
1 parent
d7b3d45135
commit
2b4955c817
11 files changed
+555
-30
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user