Commit 823f2cd
committed
feat(map): default to our own style with light + dark variants
Switch the default base map from MapTiler's proprietary style to OpenMapX's
own style — a recolored OSM Bright derivative — so the default no longer
depends on MapTiler's "style only with MapTiler tiles" terms.
- add a dark map style (openmapx-dark.json) generated from the light style by
scripts/generate-dark-map-style.mjs (re-runnable; road network lifted for
contrast, shields keep their fixed sprite-background text colours)
- loadOpenMapXStyle is theme-aware; MapCanvas, the offline maps, the place
mini-map and the offline download all load the light/dark variant
- default styleProvider flips to "openmapx"; the MapTiler style stays a
non-default opt-in
- attribution follows the data flow: OpenStreetMap (data) + OpenMapTiles (our
OSM-Bright-derived style: CC-BY design + schema) always, plus MapTiler when
their hosted tiles are used
- record the OSM Bright notice (BSD-3 code + CC-BY-4.0 design) in LICENSING.md
and on the /licenses page1 parent c027554 commit 823f2cd
12 files changed
Lines changed: 3558 additions & 36 deletions
File tree
- apps/web
- public/styles
- scripts
- src
- app/settings/offline
- components
- map
- panels/place
- lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
29 | 48 | | |
30 | 49 | | |
31 | 50 | | |
| |||
0 commit comments