This project wires several independent components. Comply with each license and terms of service for your use case.
| Component | Role | Notes |
|---|---|---|
| MapLibre GL JS | Map runtime | Open-source (BSD-style). CSS tuner (index.html) loads from unpkg. Globe / vector editor (vector-layers.html) uses patched tuner/vendor/maplibre-gl.js (5.6.0 + terrain-clip). |
| maplibre-contour | Optional contour protocol | Used by vector-layers.html (tuner/vendor/maplibre-contour.min.js). Follow upstream license. |
| Three.js | Optional 3D settlement models | MIT. Loaded from unpkg in the CSS tuner demo. |
han-city-3d.js |
Settlement extrusion / custom layer | Project code; MIT under root LICENSE. |
region-isolate.js / region-isolate-data.js |
Region isolate mask | Helper is MIT. china (+ patched xizang, haiyu and island groups) use Natural Earth 10m China POV (public domain) for land, coast, islets and the ten-dash maritime line (complete land incl. Zangnan; Dongsha / Zhongsha / Zengmu Ansha are schematic markers). gansu / zhangye are simplified OSM administrative polygons (ODbL). Narrative use; not official borders. |
| Resource | Role | Notes |
|---|---|---|
| Mapterhorn DEM tiles | Hillshade / color-relief / 3D terrain | Default tuner DEM (Terrarium-encoded WebP, CC-BY / equivalent; keep attribution). Public CDN has no SLA. |
| Mapterhorn DEM tiles | Globe / vector editor terrain | Default DEM for vector-layers.html (CC-BY / equivalent; must keep attribution). Public CDN has no SLA. |
| OpenFreeMap planet tiles | Vector editor overlay | OpenMapTiles schema via https://tiles.openfreemap.org/planet. OSM / OpenMapTiles attribution required. |
| Satellite / basemap tiles | Optional raster base | Configure only tile URLs you are allowed to use (official provider key, self-hosted cache, etc.). This repo does not grant a map-tile license. |
mapstage/ is structured as an agent skill (SKILL.md + references).
Cursor / Codex / other hosts are not dependencies of the map stack.
- Code & docs: MIT — root LICENSE
- Showcase media / third-party services / any user-supplied geodata: LICENSE-EXCEPTIONS.md