Add interactive map placement and sizing editor
This commit is contained in:
1 parent
9e7ff82280
commit
3abdc95500
14 files changed
+647
-81
No files matched your search
+11
-2
@@ -71,7 +71,8 @@ solid fills, so they may need `excludeLayers`.
|
||||
| `baseLayers` | slash-paths from the document root; everything else is hidden |
|
||||
| `excludeLayers` | layer names to hide anywhere inside the kept set |
|
||||
| `crop` | `[x0, y0, x1, y1]` in PSD pixels, or `null` for the full canvas |
|
||||
| `place` | where it sits on the world map — see step 4 |
|
||||
| `minZoom` | optional close-view reveal threshold for nested detail maps; otherwise derived from size |
|
||||
| `place` | center anchor and dimensions on the world map; optional `h` enables independent stretch — see step 4 |
|
||||
| `pxPerMeter` | optional, from the map's scale bar; recorded for later use |
|
||||
|
||||
---
|
||||
@@ -98,7 +99,7 @@ A failed map no longer aborts the batch; check the summary at the end.
|
||||
## 4. Position it on the world map
|
||||
|
||||
The base of the canvas is `sources/overall/overall.jpeg`, rotated by
|
||||
`world.rotate` (35°) so north is up. `place` is in **rotated overall-map
|
||||
`world.rotate` (45°) so north is up. `place` is in **rotated overall-map
|
||||
pixels** — the north-up image you actually look at.
|
||||
|
||||
```bash
|
||||
@@ -186,3 +187,11 @@ Each map is also only tiled down to its **native level** — the deepest zoom at
|
||||
which we are still downscaling its source. Past that the browser upscales,
|
||||
which looks the same as upscaling during the build but without storing tiles.
|
||||
`minZoom` likewise stops a map loading while it would be a speck on screen.
|
||||
The build derives it from the placed size by default. Set it explicitly for a
|
||||
nested detail view that should stay out of the main view until the user zooms
|
||||
closer; the configured value can only raise the automatic threshold.
|
||||
|
||||
For visual placement, run `pwsh server/run.ps1 -Editable`, select the map in
|
||||
the viewer, and use **Edit placement**. Dragging the center anchor previews the
|
||||
move immediately. Width and Height stretch it independently around that anchor;
|
||||
**Save & rebuild** updates `maps.json` and retiles that map.
|
||||
Reference in new issue
Block a user