Refactor: map-only view with free relief basemap - #133
Draft
aivanchenk wants to merge 6 commits into
Draft
aivanchenk wants to merge 6 commits into
aivanchenk wants to merge 6 commits into
Conversation
added 2 commits
September 27, 2026 14:46
Replace the OpenFreeMap Positron/Dark basemap with a style built from Mapterhorn elevation tiles: hypsometric color-relief, multidirectional hillshade, OpenFreeMap water, borders and labels, and a globe atmosphere. Light and dark palettes follow the theme toggle. For the refactor, /map now renders only the map with a Plan/Sphere switch, a locate button and the theme toggle. Clicks do nothing. EarthMap and the other components stay in the tree, unused.
|
🚀 Vercel preview deployed Preview URL: https://earth-prints-6y71ecj5m-anastasiia-s-projects10.vercel.app |
aivanchenk
marked this pull request as draft
September 27, 2026 19:19
Collaborator
Author
|
@lazarusA tagging you here just FYI that is the branch for UI refactoring, so you could see the progress here as it takes a long time to complete it |
…nents and streamline layout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The map is now the whole page. It uses a new basemap that renders terrain from free elevation tiles instead of the flat OpenFreeMap Positron/Dark styles.
src/lib/map/reliefStyle.ts): Mapterhorn elevation tiles drawn with MapLibre's built-incolor-relief(tint by elevation) andhillshade(four light directions), plus OpenFreeMap water, country borders and labels. On the globe,skyadds the atmosphere. There are light and dark palettes, switched by the theme toggle. No API keys and no paid services.src/components/map/ReliefMap.tsx): only the map, a Plan/Sphere switch at the top, a locate button and the theme toggle. Dragging works. Clicking the map does nothing for now.UserPositionMarkeris moved out ofEarthMapso both can use it.EarthMapand the sidebar, readout, search, tour and export components are unchanged. They're no longer rendered on/map, but they stay in the tree to be brought back later..worktrees/restore-year-grid, which was accidentally committed as a submodule entry in b6244b8.Checks
npm test(222 passing, including newreliefStyle.test.ts),tsc,npm run buildtiles.mapterhorn.comandtiles.openfreemap.org.Known follow-ups
Note for reviewers
After pulling, run
npm install. It re-copies the MapLibre worker intopublic/. Without it, tiles download but never draw.