feat(mobile): add the phone-tuned Cesium globe engine

createGlobe() implements the Globe API in mobile/DESIGN.md: Esri day
imagery blended with NASA Black Marble night lights across the
terminator, Google 3D tiles below 25 km when keyed, a single-pass
grade with half-res bloom and lenses, an adaptive quality governor,
live layers on the repo's /api routes and parsers, time scrubbing,
picking, AR contact queries and live situation cards.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VVYRAqiQj9Y1V9ZfG1RcDH
This commit is contained in:
Claude committed 2026-10-18 05:27:33 +00:00
1 parent 35ffcedcad
commit a8b7680c7a
19 files changed
+5816

No files matched your search

+288
View File
@@ -0,0 +1,288 @@
/**
* Bundled reference places: major ports (the Ports layer) and the "Always on"
* evergreen situations. Coordinates are public, rounded, and need no feed.
*/
export const PORTS = Object.freeze([
{
id: 'shanghai',
name: 'Port of Shanghai',
lon: 121.9,
lat: 30.63,
teu: 49.0,
},
{
id: 'singapore',
name: 'Port of Singapore',
lon: 103.84,
lat: 1.26,
teu: 39.0,
},
{ id: 'ningbo', name: 'Ningbo-Zhoushan', lon: 121.85, lat: 29.93, teu: 35.3 },
{
id: 'shenzhen',
name: 'Port of Shenzhen',
lon: 113.88,
lat: 22.49,
teu: 30.0,
},
{ id: 'qingdao', name: 'Port of Qingdao', lon: 120.25, lat: 36.0, teu: 28.8 },
{
id: 'guangzhou',
name: 'Guangzhou Nansha',
lon: 113.6,
lat: 22.72,
teu: 25.4,
},
{ id: 'busan', name: 'Port of Busan', lon: 129.04, lat: 35.08, teu: 23.0 },
{
id: 'tianjin',
name: 'Port of Tianjin',
lon: 117.78,
lat: 38.98,
teu: 22.0,
},
{
id: 'hong-kong',
name: 'Port of Hong Kong',
lon: 114.12,
lat: 22.33,
teu: 14.0,
},
{
id: 'rotterdam',
name: 'Port of Rotterdam',
lon: 4.05,
lat: 51.95,
teu: 13.4,
},
{ id: 'jebel-ali', name: 'Jebel Ali', lon: 55.03, lat: 25.01, teu: 14.5 },
{ id: 'port-klang', name: 'Port Klang', lon: 101.32, lat: 2.99, teu: 14.0 },
{
id: 'antwerp',
name: 'Port of Antwerp-Bruges',
lon: 4.3,
lat: 51.28,
teu: 12.5,
},
{ id: 'xiamen', name: 'Port of Xiamen', lon: 118.07, lat: 24.47, teu: 12.6 },
{
id: 'tanjung-pelepas',
name: 'Tanjung Pelepas',
lon: 103.55,
lat: 1.36,
teu: 10.5,
},
{
id: 'kaohsiung',
name: 'Port of Kaohsiung',
lon: 120.28,
lat: 22.6,
teu: 9.5,
},
{
id: 'los-angeles',
name: 'Port of Los Angeles',
lon: -118.26,
lat: 33.73,
teu: 9.9,
},
{
id: 'long-beach',
name: 'Port of Long Beach',
lon: -118.21,
lat: 33.75,
teu: 9.6,
},
{ id: 'hamburg', name: 'Port of Hamburg', lon: 9.93, lat: 53.53, teu: 7.7 },
{
id: 'new-york',
name: 'Port of New York & New Jersey',
lon: -74.14,
lat: 40.67,
teu: 8.7,
},
{
id: 'laem-chabang',
name: 'Laem Chabang',
lon: 100.88,
lat: 13.08,
teu: 8.9,
},
{ id: 'tanger-med', name: 'Tanger Med', lon: -5.5, lat: 35.89, teu: 8.6 },
{ id: 'colombo', name: 'Port of Colombo', lon: 79.85, lat: 6.95, teu: 7.2 },
{
id: 'valencia',
name: 'Port of Valencia',
lon: -0.31,
lat: 39.44,
teu: 5.5,
},
{ id: 'piraeus', name: 'Port of Piraeus', lon: 23.61, lat: 37.94, teu: 5.1 },
{ id: 'santos', name: 'Port of Santos', lon: -46.3, lat: -23.97, teu: 5.0 },
{
id: 'savannah',
name: 'Port of Savannah',
lon: -81.14,
lat: 32.12,
teu: 5.6,
},
{ id: 'mundra', name: 'Mundra', lon: 69.7, lat: 22.74, teu: 7.4 },
{
id: 'jeddah',
name: 'Jeddah Islamic Port',
lon: 39.15,
lat: 21.47,
teu: 4.8,
},
{
id: 'felixstowe',
name: 'Port of Felixstowe',
lon: 1.32,
lat: 51.95,
teu: 3.7,
},
]);
/** Evergreen "Always on" situations. */
export const EVERGREEN = Object.freeze([
{
id: 'rotterdam',
title: 'Port of Rotterdam',
subtitle: "Europe's largest port · Maasvlakte to the Botlek",
place: 'Rotterdam, Netherlands',
lon: 4.12,
lat: 51.95,
radiusKm: 16,
camera: { height: 14_000, heading: 80, pitch: -38 },
layers: ['vessels', 'ports', 'flights'],
family: 'Sea',
},
{
id: 'jfk',
title: 'JFK at rush hour',
subtitle: 'Arrivals stacking over Jamaica Bay',
place: 'New York, USA',
lon: -73.7781,
lat: 40.6413,
radiusKm: 18,
camera: { height: 9_000, heading: 30, pitch: -35 },
layers: ['flights', 'ga', 'helicopters'],
family: 'Sky',
airport: true,
},
{
id: 'hormuz',
title: 'Strait of Hormuz',
subtitle: 'A fifth of the world’s oil passes this 33 km neck',
place: 'Strait of Hormuz',
lon: 56.45,
lat: 26.55,
radiusKm: 70,
camera: { height: 160_000, heading: 330, pitch: -55 },
layers: ['vessels', 'tankers', 'military'],
family: 'Sea',
},
{
id: 'singapore-strait',
title: 'Singapore Strait',
subtitle: 'Ships queuing for the world’s busiest transhipment hub',
place: 'Singapore',
lon: 103.85,
lat: 1.22,
radiusKm: 22,
camera: { height: 30_000, heading: 20, pitch: -45 },
layers: ['vessels', 'ports'],
family: 'Sea',
},
{
id: 'suez',
title: 'Suez Canal',
subtitle: 'Northbound convoy at Port Said',
place: 'Egypt',
lon: 32.35,
lat: 30.6,
radiusKm: 45,
camera: { height: 90_000, heading: 350, pitch: -50 },
layers: ['vessels', 'tankers'],
family: 'Sea',
},
{
id: 'panama',
title: 'Panama Canal',
subtitle: 'Gatun locks and the anchorage off Colón',
place: 'Panama',
lon: -79.82,
lat: 9.2,
radiusKm: 30,
camera: { height: 60_000, heading: 320, pitch: -50 },
layers: ['vessels'],
family: 'Sea',
},
{
id: 'heathrow',
title: 'Heathrow holding stacks',
subtitle: 'Bovingdon, Lambourne, Ockham, Biggin',
place: 'London, UK',
lon: -0.4543,
lat: 51.47,
radiusKm: 30,
camera: { height: 45_000, heading: 90, pitch: -50 },
layers: ['flights', 'ga'],
family: 'Sky',
airport: true,
},
{
id: 'cape-canaveral',
title: 'Cape Canaveral',
subtitle: 'Space Coast pads LC-39A and SLC-40',
place: 'Florida, USA',
lon: -80.6,
lat: 28.56,
radiusKm: 18,
camera: { height: 16_000, heading: 0, pitch: -40 },
layers: ['launches', 'satellites'],
family: 'Orbit',
},
]);
/** Busy airports used to find the busiest airspace right now. */
export const AIRPORTS = Object.freeze([
{ code: 'ATL', name: 'Atlanta Hartsfield-Jackson', lon: -84.43, lat: 33.64 },
{ code: 'DXB', name: 'Dubai International', lon: 55.36, lat: 25.25 },
{ code: 'DFW', name: 'Dallas/Fort Worth', lon: -97.04, lat: 32.9 },
{ code: 'LHR', name: 'London Heathrow', lon: -0.45, lat: 51.47 },
{ code: 'HND', name: 'Tokyo Haneda', lon: 139.78, lat: 35.55 },
{ code: 'DEN', name: 'Denver International', lon: -104.67, lat: 39.86 },
{ code: 'ORD', name: "Chicago O'Hare", lon: -87.9, lat: 41.98 },
{ code: 'IST', name: 'Istanbul Airport', lon: 28.74, lat: 41.26 },
{ code: 'LAX', name: 'Los Angeles International', lon: -118.41, lat: 33.94 },
{ code: 'CDG', name: 'Paris Charles de Gaulle', lon: 2.55, lat: 49.01 },
{ code: 'AMS', name: 'Amsterdam Schiphol', lon: 4.76, lat: 52.31 },
{ code: 'FRA', name: 'Frankfurt', lon: 8.57, lat: 50.04 },
{ code: 'JFK', name: 'New York JFK', lon: -73.78, lat: 40.64 },
{ code: 'SIN', name: 'Singapore Changi', lon: 103.99, lat: 1.36 },
{ code: 'ICN', name: 'Seoul Incheon', lon: 126.45, lat: 37.46 },
{ code: 'PEK', name: 'Beijing Capital', lon: 116.6, lat: 40.08 },
{ code: 'PVG', name: 'Shanghai Pudong', lon: 121.81, lat: 31.14 },
{ code: 'CAN', name: 'Guangzhou Baiyun', lon: 113.3, lat: 23.39 },
{ code: 'DEL', name: 'Delhi Indira Gandhi', lon: 77.1, lat: 28.56 },
{ code: 'MAD', name: 'Madrid Barajas', lon: -3.57, lat: 40.49 },
{ code: 'CLT', name: 'Charlotte Douglas', lon: -80.94, lat: 35.21 },
{ code: 'LAS', name: 'Las Vegas Harry Reid', lon: -115.15, lat: 36.08 },
{ code: 'MIA', name: 'Miami International', lon: -80.29, lat: 25.79 },
{ code: 'SFO', name: 'San Francisco', lon: -122.38, lat: 37.62 },
{ code: 'BKK', name: 'Bangkok Suvarnabhumi', lon: 100.75, lat: 13.69 },
{ code: 'GRU', name: 'São Paulo Guarulhos', lon: -46.47, lat: -23.43 },
{ code: 'SYD', name: 'Sydney Kingsford Smith', lon: 151.18, lat: -33.95 },
{ code: 'MEX', name: 'Mexico City', lon: -99.07, lat: 19.44 },
{ code: 'DOH', name: 'Doha Hamad', lon: 51.61, lat: 25.27 },
{ code: 'BOM', name: 'Mumbai', lon: 72.87, lat: 19.09 },
]);
/** Fort Novosel (formerly Fort Rucker), US Army helicopter flight school. */
export const FORT_NOVOSEL = Object.freeze({
lon: -85.71,
lat: 31.35,
radiusKm: 60,
});