Skip to content

Commit 823f2cd

Browse files
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 page
1 parent c027554 commit 823f2cd

12 files changed

Lines changed: 3558 additions & 36 deletions

File tree

LICENSING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,25 @@ may include the Apache-2.0 libraries, but not the other way around. That is why
2626
the SDK and shared libraries — the parts we want others to reuse — are the
2727
permissive ones, and the product that ties them together is copyleft.
2828

29+
## Bundled map style
30+
31+
The default map style (`apps/web/public/styles/openmapx-streets.json` and its
32+
dark variant `openmapx-dark.json`, generated by
33+
`apps/web/scripts/generate-dark-map-style.mjs`) is a **recolored derivative of
34+
OSM Bright** ([`openmaptiles/osm-bright-gl-style`](https://github.com/openmaptiles/osm-bright-gl-style)),
35+
itself derived from Mapbox Open Styles. OSM Bright is dual-licensed:
36+
37+
| Part | License | Obligation |
38+
|---|---|---|
39+
| Style **code** (layer/expression JSON) | **BSD-3-Clause** | Retain the copyright notice (shipped on the [`/licenses`](apps/web/src/app/(legal)/licenses) page); no endorsement use of the names. |
40+
| Style **design** ("look and feel") | **CC-BY-4.0** | Visibly credit **“© OpenMapTiles”** (linking to <https://openmaptiles.org/>) on maps derived from it, alongside **“© OpenStreetMap contributors”**. |
41+
42+
OpenMapX satisfies the CC-BY design attribution through the map's attribution
43+
control (`BaseAttributions` / `baseMapVectorCredits` in `apps/web`), which shows
44+
“© OpenMapTiles” and “© OpenStreetMap contributors” on every vector base map —
45+
plus “© MapTiler” when MapTiler's hosted tiles are used. The full upstream
46+
notice text is reproduced on the `/licenses` page.
47+
2948
## Contributing and relicensing
3049

3150
Contributions are accepted under a Contributor License Agreement

0 commit comments

Comments
 (0)