v0.70.0 Default map view: whole world at [0,0] #147

Merged
kamilkrzywda merged 2 commits from chore/map-default-view into master 2026-09-24 01:49:27 +02:00
Owner

Per user request: "default zoom much smaller — centered at 0N/S 0W/E and so small that I can see entire Africa and Europe; min zoom out just so I can see entire earth."

Change (components/Map.tsx)

  • Initial camera moves from the Europe overview [10,52] z4 to null island WORLD_CENTER [0,0] at zoom 2. At z2 the world is 2048 px wide and the Africa+Europe bounding box (lat −35..+71, lon −18..+52) spans ~800 px vertically in Web Mercator — both continents are fully visible on a typical desktop map pane centered at [0,0].
  • MIN_ZOOM lowered 3 → 0: when fully zoomed out the whole earth (512 px world) fits any viewport. MAX_ZOOM = 11 and the flat-2D view are unchanged.

E2E (CI-only) — the new default view shows both Africa + Europe with overlapping markers, so every marker-click spec now frames its target first:

  • e2e/map.spec.ts: shared frameLfrs helper (jumpTo z5 + wait until LFRS's marker renders) used by all three of its click tests; MIN_ZOOM mirror updated 3 → 0 (the wheel-clamp test's zoom-out side now clamps at 0); new assertion pins the initial camera to [0,0] z2.
  • e2e/map-interactions.spec.ts: LFRS framed at z5 before its popup click; the plane-marker test fits EDDF+LEMD into the viewport first — queryRenderedFeatures is viewport-scoped and EDDF (50°N) sits right at the edge of the new default view.
  • e2e/relocation.spec.ts: both popup tests frame LFRS at z5 via a local helper before clicking.
  • e2e/hover.spec.ts: the antimeridian test's setMinZoom(0) workaround is deleted — minZoom is natively 0 now, so fitToAirports can reach the z≈1 that EDDF→NFTF needs without lifting any floor.

LFRS (Nantes) stays the click target everywhere: its nearest neighbour LFRB Brest (254 km) is only ~13–19 px away at z2 but ~104 px at the framing zoom 5, so the projected center cannot hit a neighbouring circle — same isolation guarantee as before.

Note: this branch is based on v0.68.0 master and will be rebased onto v0.69.0 (sibling PR) before merge — the version bump here is deliberately 0.70.0.

Per user request: "default zoom much smaller — centered at 0N/S 0W/E and so small that I can see entire Africa and Europe; min zoom out just so I can see entire earth." **Change (`components/Map.tsx`)** - Initial camera moves from the Europe overview `[10,52]` z4 to null island `WORLD_CENTER [0,0]` at zoom 2. At z2 the world is 2048 px wide and the Africa+Europe bounding box (lat −35..+71, lon −18..+52) spans ~800 px vertically in Web Mercator — both continents are fully visible on a typical desktop map pane centered at [0,0]. - `MIN_ZOOM` lowered 3 → 0: when fully zoomed out the whole earth (512 px world) fits any viewport. `MAX_ZOOM = 11` and the flat-2D view are unchanged. **E2E (CI-only)** — the new default view shows both Africa + Europe with overlapping markers, so every marker-click spec now frames its target first: - `e2e/map.spec.ts`: shared `frameLfrs` helper (`jumpTo` z5 + wait until LFRS's marker renders) used by all three of its click tests; MIN_ZOOM mirror updated 3 → 0 (the wheel-clamp test's zoom-out side now clamps at 0); new assertion pins the initial camera to [0,0] z2. - `e2e/map-interactions.spec.ts`: LFRS framed at z5 before its popup click; the plane-marker test fits EDDF+LEMD into the viewport first — `queryRenderedFeatures` is viewport-scoped and EDDF (50°N) sits right at the edge of the new default view. - `e2e/relocation.spec.ts`: both popup tests frame LFRS at z5 via a local helper before clicking. - `e2e/hover.spec.ts`: the antimeridian test's `setMinZoom(0)` workaround is deleted — minZoom is natively 0 now, so `fitToAirports` can reach the z≈1 that EDDF→NFTF needs without lifting any floor. LFRS (Nantes) stays the click target everywhere: its nearest neighbour LFRB Brest (254 km) is only ~13–19 px away at z2 but ~104 px at the framing zoom 5, so the projected center cannot hit a neighbouring circle — same isolation guarantee as before. **Note:** this branch is based on v0.68.0 master and will be rebased onto v0.69.0 (sibling PR) before merge — the version bump here is deliberately 0.70.0.
kamilkrzywda added 1 commit 2026-09-24 00:53:44 +02:00
v0.70.0: default map view — world at [0,0] zoom 2, minZoom 0
CI / build + unit + e2e (pull_request) Failing after 14m13s
fb369a1afb
kamilkrzywda force-pushed chore/map-default-view from eef305aa27 to fb369a1afb 2026-09-24 00:53:44 +02:00 Compare
kamilkrzywda scheduled this pull request to auto merge when all checks succeed 2026-09-24 00:53:54 +02:00
kamilkrzywda added 1 commit 2026-09-24 01:35:23 +02:00
v0.70.0: e2e wheel-clamp test asserts MapLibre height fit floor
CI / build + unit + e2e (pull_request) Successful in 14m5s
0aca4d63aa
kamilkrzywda merged commit 034d7a8d94 into master 2026-09-24 01:49:27 +02:00
Sign in to join this conversation.