mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 16:33:16 +00:00
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:
@@ -13,7 +13,7 @@
|
||||
"src/components/Planner/DayPlanSidebar.tsx": 2908,
|
||||
"src/components/Planner/PlaceFormModal.test.tsx": 2836,
|
||||
"src/components/Planner/PlaceInspector.tsx": 1030,
|
||||
"src/components/Studio/TravelElements.tsx": 1559,
|
||||
"src/components/Studio/TravelElements.tsx": 1332,
|
||||
"src/components/Studio/countryShapes.ts": 2595,
|
||||
"src/index.css": 1636,
|
||||
"src/mobile/screens/admin/MAdminPluginsPanel.tsx": 1503,
|
||||
|
||||
Reference in New Issue
Block a user