Communitygithub.com

hopechen067/china-antique-maplibre

China antique parchment MapLibre stack: EOX Sentinel-2 + Terrarium hillshade, water overlay, live tuner, tiered settlements for historical video.

china-antique-maplibre 是什麼?

china-antique-maplibre is a Codex agent skill that china antique parchment MapLibre stack: EOX Sentinel-2 + Terrarium hillshade, water overlay, live tuner, tiered settlements for historical video.

相容平台~Claude CodeCodex CLI~Cursor
npx skills add hopechen067/china-antique-maplibre

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

china-antique-maplibre · 中国历史古卷地图引擎

Use this skill when building or tuning antique parchment China maps in MapLibre for HyperFrames / historical video: optional raster basemap, Terrarium hillshade, optional water overlay (bring your own data), CSS antique grade, and tiered city extrusions.

When to use

  • Need a production MapLibre style that reads as aged parchment over real terrain.
  • Need live paint/CSS tuning before locking a HyperFrames scene.
  • Need optional rivers/lakes overlay wiring (data not shipped — supply locally if needed).
  • Need tiered settlements (capital / large / medium / small / pass / station / ordos).

Do not use the tuner page as the final render host.

Modes

ModePurpose
Production stackEmbed MapLibre in HyperFrames (or your app): optional satellite/raster + encoding: 'terrarium' terrain + hillshade + optional water layers + CSS filter stack + city extrusions. Drive look from exported JSON.
TunerLocal HTTP page under tuner/ for interactive sliders, preset load/export, water/city toggles.

Workflow

  1. Serve tuner: cd tuner && python -m http.server 8765http://localhost:8765/
  2. Tiles: default config uses EOX Sentinel-2 cloudless + Terrarium (tuner/map-tiles.config.js). Override with gitignored map-tiles.config.local.js for other sources.
  3. Apply default preset tuner/preset-antique-default.json (same content as tuner/presets/antique-default.json).
  4. Adjust satellite / hillshade / water (if you supplied data) / CSS / UI toggles until the look locks.
  5. Export JSON from the tuner (copy or download).
  6. Migrate paint + camera + CSS fields into the HyperFrames MapLibre scene (see references).
  7. In production: jumpTo camera (or set initial camera); wait for idle; optionally pre-cache tiles. Avoid easeTo / flyTo for recorded frames (motion blur / non-deterministic timing).
  8. Always set Terrarium DEM with encoding: 'terrarium'. Wrong encoding breaks hillshade/terrain.
  9. Final frames render from the HyperFrames / production host — not from the tuner UI.

Hard rules

  • Tiles not bundled — MapLibre fetches DEM (and optional basemap) at runtime from configured URLs only.
  • Only use basemap endpoints you are allowed to use — defaults are public demo tiles (EOX); swap via config when needed.
  • encoding: 'terrarium' on the terrain source — mandatory.
  • No easeTo / flyTo in recorded production paths; prefer jumpTo + idle.
  • Do not host final render on tuner.
  • Highlight water paint keys: highlightRiver / highlightWidth (UI: showHighlight). Older drafts may still say qilianRiver / showQilian — treat as aliases only when reading legacy JSON.
  • Water data is not shipped — do not expect or commit tuner/assets/water-data.js. Optional local packs only; see repo root DATA-PROVENANCE.md and references/water-overlay.md.

References

Agents

See agents/openai.yaml for display name / default prompt.

相關技能