How hopechen067/mapstage works
MapStage is an interactive map-and-globe tuner, paired with an agent skill for applying exported styles. The main workflow is to tune projection, imagery, terrain and visual effects, then copy a JSON preset for an agent to apply to a map scene. Other documented capabilities include vector water, region isolation and city-tier settlements. The graph uses README-documented relationships and the sampled configuration and boundary-patching code; unsampled browser wiring is not inferred.
Main entry points: index.html Interactive Tuner · map-tiles.config.js Tile Configuration · water-pack.json Vector Water · region-isolate-data.js Region Geometry
Components 20
Map Tuner
- Interactive Tuner
mapstage/tuner/index.html - Tile Configuration
mapstage/tuner/map-tiles.config.js
Map Layers
- Map / Globe
mapstage/tuner/index.html - Satellite Basemap
mapstage/tuner/index.html - Terrain Relief
mapstage/tuner/index.html - Vector Water
mapstage/tuner/assets/water-pack.json - CSS Color Grade
mapstage/tuner/assets/map-fx.js - Region Isolate
mapstage/tuner/assets/region-isolate.js - City Tiers
mapstage/tuner/assets/han-city-3d.js
Preset Workflow
- JSON Preset Export
mapstage/tuner/index.html - MapStage Skill
mapstage/SKILL.md - Preset Schema
mapstage/schemas/map-preset.schema.json
Region Data
- Region Geometry
mapstage/tuner/assets/region-isolate-data.js - Boundary Builder
mapstage/tuner/scripts/patch-china-boundaries.mjs - Island Regions
mapstage/tuner/scripts/patch-maritime-islands.mjs
Other components
- Map Designer
- EOX Tiles
- Mapterhorn DEM
- OpenFreeMap Water
- Agent
Connections 19
- Map Designer → Interactive Tuner: tunes map
README.md - Interactive Tuner → Map / Globe: offers projection
README.md - Interactive Tuner → Satellite Basemap: offers basemap
README.md - Interactive Tuner → Terrain Relief: offers terrain
README.md - Interactive Tuner → Vector Water: offers water
README.md - Interactive Tuner → CSS Color Grade: offers grading
README.md - Interactive Tuner → Region Isolate: offers isolation
README.md - Interactive Tuner → City Tiers: offers settlements
README.md - Tile Configuration → EOX Tiles: configures tiles
mapstage/tuner/map-tiles.config.js - Tile Configuration → Mapterhorn DEM: configures DEM
mapstage/tuner/map-tiles.config.js - Satellite Basemap → EOX Tiles: fetches tiles
README.md - Terrain Relief → Mapterhorn DEM: fetches DEM
README.md - Vector Water → OpenFreeMap Water: uses vector layers
README.md - Interactive Tuner → JSON Preset Export: copies JSON
README.md - JSON Preset Export → Agent: provides preset
README.md - Agent → MapStage Skill: applies style
README.md - JSON Preset Export → Preset Schema: describes preset
- Boundary Builder → Region Geometry: patches geometry
mapstage/tuner/scripts/patch-china-boundaries.mjs - Island Regions → Region Geometry: writes regions
mapstage/tuner/scripts/patch-maritime-islands.mjs