feat(studio): maps framed by hand, across the antimeridian, with the small islands

The vector map draws a hand-framed view as given, widened to the frame's
proportions as the fit always was, and the tile grid takes the same
extent. A view east of 180 lifts the stops, tracks, roads and outlines
west of it by a turn, so Fiji is one map rather than two halves of the
world. The fit, the bows and the route's extent move to travel/mapFit.ts,
which takes TravelElements.tsx from 1559 to 1332 lines.

Hawaii and other small islands vanished because the bundled outlines
drop every ring below 1.2 % of the mainland (#3056). A finer set, built
from the same admin-0 boundaries by scripts/build-country-detail.mjs, is
served as one static file per country under country-detail/ and loaded
when a map's route (or its own view) is regional, or when coastDetail
asks for it; the coarse outline stays the fallback offline and until a
file arrives. The decision reads the route, not the fitted window, since
fitted to its countries a Hawaii trip falls back to the whole United
States. The export waits for the files before the sheets render, the
trip PDF's outline map loads them for a regional route, and the service
worker keeps them once fetched without precaching them.
This commit is contained in:
Maurice
2026-11-30 14:40:05 +01:00
parent 83f3fee848
commit 5990792e0b
217 changed files with 1560 additions and 324 deletions
-1
View File
@@ -1822,7 +1822,6 @@
"tests/helpers/mobileTrip.ts",
"tests/helpers/msw/handlers/admin.ts",
"tests/helpers/msw/handlers/auth.ts",
"tests/helpers/msw/handlers/index.ts",
"tests/helpers/msw/handlers/notifications.ts",
"tests/helpers/msw/handlers/shared.ts",
"tests/helpers/multipart.ts",