Add per-map editable markers and backups
This commit is contained in:
1 parent
e71447da5d
commit
bbb4cadddd
23 files changed
+11090
-129
No files matched your search
@@ -130,17 +130,54 @@ polygon, rather than continuing to use the untrimmed rectangular canvas.
|
||||
**Markers** toggles a real Leaflet data layer; no PSD marker artwork is placed
|
||||
over the tiles. `tools/extract_markers.py` reads visible on-map PSD layer
|
||||
metadata, ignores legends and title furniture, classifies and deduplicates
|
||||
markers, and writes normalized records to `web/data/markers.json`:
|
||||
markers, and writes normalized records to `web/data/markers/<map-id>.json`:
|
||||
|
||||
```bash
|
||||
python tools/extract_markers.py
|
||||
python tools/extract_markers.py --source-root C:/path/to/source-checkout
|
||||
python tools/backup_markers.py
|
||||
python tools/render_marker_audit.py --source-root C:/path/to/source-checkout
|
||||
```
|
||||
|
||||
Every map uses the same HTML/CSS symbols, colors and labels. Only the focused
|
||||
parent/sub-map family is shown, symbols appear at broad zooms, and text labels
|
||||
appear at zoom 6 or closer to avoid covering the map. The toggle is persisted
|
||||
in local browser storage.
|
||||
The audit command flattens every visible PSD layer and writes a side-by-side
|
||||
reference/semantic comparison for each map. Use it after extraction to catch
|
||||
legend copies, off-map records, missing extract names and role mismatches.
|
||||
|
||||
Every map uses the same configurable symbols, colors and labels. Open **Marker
|
||||
categories** to show or hide individual categories; those choices and the main
|
||||
toggle are persisted in local browser storage. Hovering a marker shows its
|
||||
name, category and source map.
|
||||
|
||||
Edit `web/data/marker-config.json` to change category grouping, color, size,
|
||||
symbol (including emoji), visible text, default visibility, or the zoom at
|
||||
which text labels appear. The viewer builds a world-space grid index and only
|
||||
fetches only the focused parent/sub-map family, unloads the previous family,
|
||||
and creates markers only in the padded viewport. Selecting Customs therefore
|
||||
loads `customs.json` and `customs-dorms.json`; selecting Shoreline loads
|
||||
`shoreline.json` and `shoreline-resort.json`. `gridSize` and `viewportPadding`
|
||||
in the config tune the viewport index.
|
||||
|
||||
Extracts and transits are enabled by default, use larger high-stacking symbols,
|
||||
and reveal labels earlier than ordinary markers. Bulk spawn, loot, key, cache
|
||||
and location categories begin hidden to keep the main map readable.
|
||||
|
||||
Visible labels are laid out against the current viewport, nearby marker icons
|
||||
and the open control panel. Crowded labels move to the nearest free position;
|
||||
when that position is no longer adjacent, a leader line connects the label to
|
||||
its marker. Extract labels receive placement priority.
|
||||
|
||||
With the editable server running, select a map and open **Marker edit**. Click
|
||||
an existing marker to rename it or change its category, drag it to save a new
|
||||
position, delete it, or choose **Drop new marker** and click inside the selected
|
||||
map.
|
||||
Manual changes are written to `web/data/marker-edits/<map-id>.json` as compact
|
||||
overrides, additions and deleted-marker IDs. The generated file under
|
||||
`data/markers/` remains untouched, so deletion is reversible.
|
||||
|
||||
`tools/backup_markers.py` snapshots every generated map file into
|
||||
`web/data/marker-defaults/`. Existing snapshots are never overwritten and the
|
||||
backup files are marked read-only. The viewer and editable server do not write
|
||||
to that directory.
|
||||
|
||||
## No black gaps
|
||||
|
||||
|
||||
Reference in new issue
Block a user