mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 08:42:21 +00:00
fix(mobile): director number keys work with the menu open, plus engine fixes
Number keys 1-9, 0, - and = jump to beats whether or not the director is open. The engine now draws real river outlines over Esri's inconsistent Hudson imagery, declutters Moment labels, and makes playMoment, exitMoment and setTime(null) safe at any time (each view- cone line owns its material; teardown waits for the frame in flight). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VVYRAqiQj9Y1V9ZfG1RcDH
This commit is contained in:
8 files changed
+227
-41
No files matched your search
@@ -887,7 +887,11 @@ const moment = {
|
||||
antennaM: ANTENNA,
|
||||
decks: [DECK_86, DECK_102],
|
||||
},
|
||||
stage: { buildings: 'midtown-buildings.json', highlight: '1015862' },
|
||||
stage: {
|
||||
buildings: 'midtown-buildings.json',
|
||||
water: 'midtown-water.json',
|
||||
highlight: '1015862',
|
||||
},
|
||||
wind: WIND,
|
||||
cameraPath,
|
||||
beats: BEATS.map(([mmss, title]) => ({ t: at(mmss), title })),
|
||||
@@ -906,6 +910,10 @@ const moment = {
|
||||
detail:
|
||||
'Real footprints and roof heights for Midtown (NYC OTI, dataset 5zhs-2jue).',
|
||||
},
|
||||
{
|
||||
name: 'OpenStreetMap water polygons',
|
||||
detail: 'Hudson and East River surfaces (ODbL, via OpenFreeMap).',
|
||||
},
|
||||
{
|
||||
name: 'Esri World Imagery',
|
||||
detail: 'Base imagery of the real place.',
|
||||
|
||||
@@ -55,10 +55,7 @@ const template = meta.tiles[0];
|
||||
const polys = [];
|
||||
for (let x = tileX(BBOX.west); x <= tileX(BBOX.east); x++)
|
||||
for (let y = tileY(BBOX.north); y <= tileY(BBOX.south); y++) {
|
||||
const url = template
|
||||
.replace('{z}', Z)
|
||||
.replace('{x}', x)
|
||||
.replace('{y}', y);
|
||||
const url = template.replace('{z}', Z).replace('{x}', x).replace('{y}', y);
|
||||
const r = await fetch(url);
|
||||
if (!r.ok) throw new Error(`tile ${x}/${y} HTTP ${r.status}`);
|
||||
const tile = new VectorTile(new Pbf(new Uint8Array(await r.arrayBuffer())));
|
||||
|
||||
@@ -18,7 +18,11 @@
|
||||
"antennaM": 443,
|
||||
"decks": [320, 373]
|
||||
},
|
||||
"stage": { "buildings": "midtown-buildings.json", "highlight": "1015862" },
|
||||
"stage": {
|
||||
"buildings": "midtown-buildings.json",
|
||||
"water": "midtown-water.json",
|
||||
"highlight": "1015862"
|
||||
},
|
||||
"wind": { "fromDeg": 290, "kt": 14 },
|
||||
"cameraPath": [
|
||||
{
|
||||
@@ -21394,6 +21398,10 @@
|
||||
"name": "NYC Open Data · Building Footprints",
|
||||
"detail": "Real footprints and roof heights for Midtown (NYC OTI, dataset 5zhs-2jue)."
|
||||
},
|
||||
{
|
||||
"name": "OpenStreetMap water polygons",
|
||||
"detail": "Hudson and East River surfaces (ODbL, via OpenFreeMap)."
|
||||
},
|
||||
{
|
||||
"name": "Esri World Imagery",
|
||||
"detail": "Base imagery of the real place."
|
||||
|
||||
Reference in new issue
Block a user