mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 16:33:16 +00:00
5990792e0b
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.