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
+1
-1
@@ -18,7 +18,7 @@ build/
|
||||
web/tiles/
|
||||
web/tiles-trimmed/
|
||||
web/data/world.json
|
||||
web/data/markers.json
|
||||
web/data/markers/
|
||||
|
||||
# Fetched by server/get-caddy.ps1 -- a 47 MB binary, not source.
|
||||
server/caddy.exe
|
||||
|
||||
+50
-6
@@ -368,16 +368,60 @@ of the map's geometry, zoom range and source file stamp — see §11.
|
||||
marker pixels. Visible leaves in on-map overlay/marker groups are classified,
|
||||
normalized against the configured crop, and deduplicated when a PSD icon and
|
||||
text component share the same point. Legends, credits, titles, compass art and
|
||||
large region overlays are excluded. The generated `web/data/markers.json`
|
||||
contains `{mapId, x, y, category, label, source}` records.
|
||||
large region overlays are excluded. Each generated
|
||||
`web/data/markers/<map-id>.json` contains only that map's
|
||||
`{mapId, x, y, category, label, source}` records.
|
||||
|
||||
`tools/render_marker_audit.py` composites all visible PSD layers, uses the
|
||||
configured crop for both panes, and produces one side-by-side comparison per
|
||||
map plus a contact sheet. This is the visual QA step for finding off-map
|
||||
records, helper/legend artifacts, missing names, and PMC/Scav/shared/hidden
|
||||
extract role mismatches. Source PSDs and generated map tiles are never changed.
|
||||
|
||||
The viewer converts normalized coordinates through each map's current
|
||||
`origin`/`size`, so placement and stretch changes also move the marker layer.
|
||||
One **Markers** control toggles the complete layer. Focus limits rendering to
|
||||
the active parent/sub-map family, while consistent CSS category symbols remain
|
||||
visible at broad zooms and labels appear from zoom 6.
|
||||
One **Markers** control toggles the complete layer, while the grouped category
|
||||
controls toggle individual marker types. Visibility choices are saved in local
|
||||
browser storage. Hover tooltips show the marker name, category and source map.
|
||||
|
||||
`web/app.js`, 179 lines, no build step, no framework, vendored Leaflet.
|
||||
**Marker edit** enables existing markers as draggable Leaflet markers. Clicking
|
||||
one opens its label and category fields; dragging persists normalized map-local
|
||||
coordinates. **Drop new marker** creates a draggable draft that is written only
|
||||
after its label and category are confirmed. `/api/marker` stores extracted
|
||||
marker changes as overrides, new markers as additions, and deletions as default
|
||||
marker ID tombstones in
|
||||
`web/data/marker-edits/<map-id>.json`; it never rewrites the corresponding
|
||||
generated marker file. Deleting a user-added marker removes only that addition.
|
||||
|
||||
`tools/backup_markers.py` copies every current generated map file into
|
||||
`web/data/marker-defaults/`, refuses to overwrite a differing snapshot, and
|
||||
marks each backup read-only. Neither the viewer nor the server API has a write
|
||||
path to this directory, preserving a restoration source independent of future
|
||||
extraction runs.
|
||||
|
||||
`web/data/marker-config.json` controls each category's group, label, color,
|
||||
size, symbol (plain text or emoji), visible text and default visibility. Its
|
||||
defaults also control the text-label zoom, spatial-index cell size and viewport
|
||||
padding. At runtime, `web/app.js` indexes records into world-space grid cells,
|
||||
queries only cells intersecting the padded viewport, and reconciles that small
|
||||
result with the currently rendered Leaflet markers. Focus fetches only the
|
||||
active parent/sub-map family and unloads the previous family's records. A child
|
||||
is always loaded with its root map, so Customs includes Dorms and Shoreline
|
||||
includes Resort without requiring a second selection.
|
||||
|
||||
Extract categories have their own earlier label threshold and higher stacking
|
||||
order. They are visible by default; noisy bulk categories start hidden but
|
||||
remain individually toggleable. `visibilityVersion` provides a clean default
|
||||
set when those defaults change without overwriting later user choices.
|
||||
|
||||
After viewport marker reconciliation, a label-layout pass reserves marker,
|
||||
panel and already-placed label rectangles in a small spatial grid. It searches
|
||||
bounded nearby positions, prioritizes extracts, and draws a short leader line
|
||||
when a label must move away from its icon. Icon avoidance is relaxed before a
|
||||
label is ever sent far from its marker. Layout reruns after marker, viewport or
|
||||
panel-size changes without rebuilding the marker index.
|
||||
|
||||
The viewer has no build step or framework and uses vendored Leaflet.
|
||||
|
||||
### Layers
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -161,6 +161,8 @@ python tools/build.py overall # just retile the base map
|
||||
python tools/build.py --tiles-only # re-tile after a place/crop change
|
||||
python tools/build.py --force-export # re-render even if base.png is current
|
||||
python tools/extract_markers.py <id> # PSD metadata -> semantic marker JSON
|
||||
python tools/backup_markers.py # one-time read-only default snapshot
|
||||
python tools/render_marker_audit.py <id> # visible PSD vs semantic markers
|
||||
```
|
||||
|
||||
Marker extraction recognizes visible on-map groups whose paths use names such
|
||||
@@ -169,6 +171,26 @@ Keep legends and title furniture in clearly named groups so the extractor can
|
||||
exclude them. Marker coordinates are stored normalized to the configured crop,
|
||||
not as raster overlays.
|
||||
|
||||
Always review `<id>-comparison.jpg` from `render_marker_audit.py` before
|
||||
accepting extraction. Its left pane is the PSD flattened with every visible
|
||||
layer; the right pane uses that exact crop with the semantic records overlaid.
|
||||
Confirm that on-map PMC, Scav, shared/co-op, hidden and transit extracts are
|
||||
named once, and that legends, credits, side indicators and notes produce no
|
||||
records.
|
||||
|
||||
If extraction produces a new category, add it to
|
||||
`web/data/marker-config.json`. Categories can share a group and independently
|
||||
configure their label, color, size, text-or-emoji symbol, visible text and
|
||||
default visibility. Viewer-wide label zoom and spatial-index tuning live in
|
||||
the same file under `defaults`.
|
||||
|
||||
Manual marker moves, names, categories and additions live separately in
|
||||
`web/data/marker-edits/<map-id>.json`. Re-running extraction replaces only
|
||||
`web/data/markers/<map-id>.json` and preserves those user-authored overrides.
|
||||
Deleted extracted markers are stored as IDs in the same edit file, so defaults
|
||||
are never modified. Run `backup_markers.py` after approving the initial marker
|
||||
set; it will refuse to overwrite a different existing backup.
|
||||
|
||||
`build.py` skips the PSD render when `base.png` is newer than the PSD, so
|
||||
iterating on `place` and `crop` is seconds, not minutes.
|
||||
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# pwsh server/run.ps1 # port 8080
|
||||
# pwsh server/run.ps1 -Port 9000
|
||||
# pwsh server/run.ps1 -Port 9000 -Editable # enable placement saves
|
||||
# pwsh server/run.ps1 -Port 9000 -Editable # enable placement, trim and marker saves
|
||||
#
|
||||
# Uses Caddy when server/caddy.exe is present (get it with get-caddy.ps1) and
|
||||
# falls back to the dependency-free serve.py otherwise. Caddy is roughly 3x
|
||||
@@ -28,7 +28,7 @@ $ip = (Get-NetIPConfiguration |
|
||||
if (-not $ip) { $ip = '127.0.0.1' }
|
||||
|
||||
$caddy = Join-Path $here 'caddy.exe'
|
||||
$engine = if ($Editable) { 'serve.py (placement editing enabled)' }
|
||||
$engine = if ($Editable) { 'serve.py (map editing enabled)' }
|
||||
elseif (Test-Path $caddy) { 'caddy' }
|
||||
else { 'serve.py (slower)' }
|
||||
|
||||
|
||||
+165
-5
@@ -1,4 +1,4 @@
|
||||
"""Static server plus local placement/trim editing API, reachable on the LAN.
|
||||
"""Static server plus local placement, trim and marker editing API.
|
||||
|
||||
python server/serve.py [port] # default 8080
|
||||
|
||||
@@ -17,11 +17,13 @@ import http.server
|
||||
import json
|
||||
import math
|
||||
import os
|
||||
import re
|
||||
import socket
|
||||
import socketserver
|
||||
import subprocess
|
||||
import sys
|
||||
import threading
|
||||
import uuid
|
||||
from pathlib import Path
|
||||
from urllib.parse import urlsplit
|
||||
|
||||
@@ -29,6 +31,8 @@ ROOT = Path(__file__).resolve().parent.parent
|
||||
WEB = ROOT / "web"
|
||||
CONFIG = ROOT / "maps.json"
|
||||
BUILD_TOOL = ROOT / "tools" / "build.py"
|
||||
MARKER_DIR = WEB / "data" / "markers"
|
||||
MARKER_EDIT_DIR = WEB / "data" / "marker-edits"
|
||||
CONFIG_LOCK = threading.Lock()
|
||||
|
||||
|
||||
@@ -54,7 +58,7 @@ class Handler(http.server.SimpleHTTPRequestHandler):
|
||||
|
||||
def do_POST(self) -> None: # noqa: N802 - stdlib handler API
|
||||
path = urlsplit(self.path).path
|
||||
if path not in {"/api/placement", "/api/trim"}:
|
||||
if path not in {"/api/placement", "/api/trim", "/api/marker"}:
|
||||
self.send_json(404, {"error": "unknown API endpoint"})
|
||||
return
|
||||
|
||||
@@ -63,7 +67,7 @@ class Handler(http.server.SimpleHTTPRequestHandler):
|
||||
if not 0 < length <= 16_384:
|
||||
raise ValueError("request body must be between 1 and 16384 bytes")
|
||||
payload = json.loads(self.rfile.read(length))
|
||||
map_id = payload["id"]
|
||||
map_id = payload["mapId"] if path == "/api/marker" else payload["id"]
|
||||
if not isinstance(map_id, str) or not map_id or map_id == "overall":
|
||||
raise ValueError("id must name a detail map")
|
||||
if path == "/api/placement":
|
||||
@@ -73,11 +77,34 @@ class Handler(http.server.SimpleHTTPRequestHandler):
|
||||
raise ValueError("cx, cy, w and h must be finite numbers")
|
||||
if width <= 0 or height <= 0:
|
||||
raise ValueError("w and h must be greater than zero")
|
||||
else:
|
||||
elif path == "/api/trim":
|
||||
points = normalize_trim_points(payload["points"])
|
||||
transparency = float(payload["outsideTransparency"])
|
||||
if not math.isfinite(transparency) or not 0 <= transparency <= 1:
|
||||
raise ValueError("outsideTransparency must be between 0 and 1")
|
||||
else:
|
||||
marker_id = payload.get("id")
|
||||
action = payload.get("action", "save")
|
||||
if action not in {"save", "delete"}:
|
||||
raise ValueError("marker action must be save or delete")
|
||||
if marker_id is not None and (
|
||||
not isinstance(marker_id, str) or not 1 <= len(marker_id) <= 120
|
||||
):
|
||||
raise ValueError("marker id must be a string no longer than 120 characters")
|
||||
if action == "delete":
|
||||
if marker_id is None:
|
||||
raise ValueError("deleting a marker requires its id")
|
||||
else:
|
||||
x, y = float(payload["x"]), float(payload["y"])
|
||||
if not all(math.isfinite(v) and 0 <= v <= 1 for v in (x, y)):
|
||||
raise ValueError("marker x and y must be finite numbers from 0 to 1")
|
||||
label = payload["label"]
|
||||
if not isinstance(label, str) or not label.strip() or len(label.strip()) > 160:
|
||||
raise ValueError("marker label must contain 1 to 160 characters")
|
||||
label = label.strip()
|
||||
category = payload["category"]
|
||||
if not isinstance(category, str) or not re.fullmatch(r"[a-z0-9-]{1,40}", category):
|
||||
raise ValueError("marker category must use lowercase letters, numbers or hyphens")
|
||||
except (KeyError, TypeError, ValueError, json.JSONDecodeError) as exc:
|
||||
self.send_json(400, {"error": str(exc)})
|
||||
return
|
||||
@@ -85,8 +112,12 @@ class Handler(http.server.SimpleHTTPRequestHandler):
|
||||
try:
|
||||
if path == "/api/placement":
|
||||
result = save_placement(map_id, cx, cy, width, height)
|
||||
else:
|
||||
elif path == "/api/trim":
|
||||
result = save_trim(map_id, points, transparency)
|
||||
elif action == "delete":
|
||||
result = delete_marker(marker_id, map_id)
|
||||
else:
|
||||
result = save_marker(marker_id, map_id, x, y, label, category)
|
||||
except PlacementError as exc:
|
||||
self.send_json(exc.status, {"error": str(exc)})
|
||||
return
|
||||
@@ -142,6 +173,135 @@ def _write_world(raw: dict) -> None:
|
||||
temporary.replace(path)
|
||||
|
||||
|
||||
def _marker_file(directory: Path, map_id: str) -> Path:
|
||||
if not re.fullmatch(r"[a-z0-9-]+", map_id):
|
||||
raise PlacementError("map id contains unsupported filename characters", 400)
|
||||
return directory / f"{map_id}.json"
|
||||
|
||||
|
||||
def _write_marker_edits(map_id: str, raw: dict) -> None:
|
||||
MARKER_EDIT_DIR.mkdir(parents=True, exist_ok=True)
|
||||
destination = _marker_file(MARKER_EDIT_DIR, map_id)
|
||||
temporary = destination.with_name(f"{destination.name}.{os.getpid()}.tmp")
|
||||
temporary.write_text(
|
||||
json.dumps(raw, indent=2, ensure_ascii=False) + "\n", encoding="utf-8"
|
||||
)
|
||||
temporary.replace(destination)
|
||||
|
||||
|
||||
def save_marker(
|
||||
marker_id: str | None,
|
||||
map_id: str,
|
||||
x: float,
|
||||
y: float,
|
||||
label: str,
|
||||
category: str,
|
||||
) -> dict:
|
||||
"""Persist a user marker or an override without touching PSD extraction output."""
|
||||
with CONFIG_LOCK:
|
||||
maps = json.loads(CONFIG.read_text(encoding="utf-8")).get("maps", [])
|
||||
if not any(m.get("id") == map_id and not m.get("base") for m in maps):
|
||||
raise PlacementError(f"unknown map id: {map_id}", 404)
|
||||
marker_path = _marker_file(MARKER_DIR, map_id)
|
||||
edit_path = _marker_file(MARKER_EDIT_DIR, map_id)
|
||||
if not marker_path.exists():
|
||||
raise PlacementError(
|
||||
f"web/data/markers/{map_id}.json is missing; extract markers first", 409
|
||||
)
|
||||
|
||||
extracted = json.loads(marker_path.read_text(encoding="utf-8")).get("markers", [])
|
||||
originals = {item.get("id"): item for item in extracted if item.get("id")}
|
||||
if edit_path.exists():
|
||||
edits = json.loads(edit_path.read_text(encoding="utf-8"))
|
||||
else:
|
||||
edits = {"version": 2, "overrides": {}, "added": [], "deleted": []}
|
||||
edits["version"] = 2
|
||||
overrides = edits.setdefault("overrides", {})
|
||||
added = edits.setdefault("added", [])
|
||||
deleted = edits.setdefault("deleted", [])
|
||||
|
||||
values = {
|
||||
"mapId": map_id,
|
||||
"x": round(x, 6),
|
||||
"y": round(y, 6),
|
||||
"label": label,
|
||||
"category": category,
|
||||
}
|
||||
if marker_id is None:
|
||||
marker_id = f"user-{uuid.uuid4().hex}"
|
||||
record = {"id": marker_id, **values, "source": "User marker"}
|
||||
added.append(record)
|
||||
else:
|
||||
if marker_id in deleted:
|
||||
deleted.remove(marker_id)
|
||||
added_record = next((item for item in added if item.get("id") == marker_id), None)
|
||||
if added_record is not None:
|
||||
added_record.update(values)
|
||||
record = dict(added_record)
|
||||
else:
|
||||
original = originals.get(marker_id)
|
||||
if original is None:
|
||||
raise PlacementError(f"unknown marker id: {marker_id}", 404)
|
||||
if original.get("mapId") != map_id:
|
||||
raise PlacementError("an extracted marker cannot be moved to another map", 400)
|
||||
comparable = {
|
||||
**original,
|
||||
"x": round(float(original.get("x", 0)), 6),
|
||||
"y": round(float(original.get("y", 0)), 6),
|
||||
}
|
||||
override = {
|
||||
key: value for key, value in values.items()
|
||||
if value != comparable.get(key)
|
||||
}
|
||||
if override:
|
||||
overrides[marker_id] = override
|
||||
else:
|
||||
overrides.pop(marker_id, None)
|
||||
record = {**original, **override}
|
||||
|
||||
_write_marker_edits(map_id, edits)
|
||||
return {"ok": True, "marker": record}
|
||||
|
||||
|
||||
def delete_marker(marker_id: str, map_id: str) -> dict:
|
||||
"""Hide an extracted marker or remove a user marker without touching defaults."""
|
||||
with CONFIG_LOCK:
|
||||
maps = json.loads(CONFIG.read_text(encoding="utf-8")).get("maps", [])
|
||||
if not any(m.get("id") == map_id and not m.get("base") for m in maps):
|
||||
raise PlacementError(f"unknown map id: {map_id}", 404)
|
||||
marker_path = _marker_file(MARKER_DIR, map_id)
|
||||
edit_path = _marker_file(MARKER_EDIT_DIR, map_id)
|
||||
if not marker_path.exists():
|
||||
raise PlacementError(
|
||||
f"web/data/markers/{map_id}.json is missing; extract markers first", 409
|
||||
)
|
||||
|
||||
extracted = json.loads(marker_path.read_text(encoding="utf-8")).get("markers", [])
|
||||
originals = {item.get("id"): item for item in extracted if item.get("id")}
|
||||
edits = json.loads(edit_path.read_text(encoding="utf-8")) if edit_path.exists() \
|
||||
else {"version": 2, "overrides": {}, "added": [], "deleted": []}
|
||||
edits["version"] = 2
|
||||
overrides = edits.setdefault("overrides", {})
|
||||
added = edits.setdefault("added", [])
|
||||
deleted = edits.setdefault("deleted", [])
|
||||
|
||||
added_record = next((item for item in added if item.get("id") == marker_id), None)
|
||||
if added_record is not None:
|
||||
edits["added"] = [item for item in added if item.get("id") != marker_id]
|
||||
else:
|
||||
original = originals.get(marker_id)
|
||||
if original is None:
|
||||
raise PlacementError(f"unknown marker id: {marker_id}", 404)
|
||||
if original.get("mapId") != map_id:
|
||||
raise PlacementError("an extracted marker cannot be deleted from another map", 400)
|
||||
if marker_id not in deleted:
|
||||
deleted.append(marker_id)
|
||||
deleted.sort()
|
||||
overrides.pop(marker_id, None)
|
||||
_write_marker_edits(map_id, edits)
|
||||
return {"ok": True, "deletedId": marker_id, "mapId": map_id}
|
||||
|
||||
|
||||
def save_trim(map_id: str, points: list[list[float]], transparency: float) -> dict:
|
||||
"""Persist a polygon and build a separate, permanently masked raster copy."""
|
||||
with CONFIG_LOCK:
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
"""Create an immutable snapshot of generated per-map marker defaults.
|
||||
|
||||
Existing backups are never overwritten. If a generated file differs from its
|
||||
backup, the script stops and reports it so replacing the snapshot is always an
|
||||
explicit manual decision.
|
||||
|
||||
python tools/backup_markers.py
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import os
|
||||
import shutil
|
||||
import stat
|
||||
from pathlib import Path
|
||||
|
||||
from common import DATA, ROOT
|
||||
|
||||
|
||||
SOURCE_DIR = DATA / "markers"
|
||||
BACKUP_DIR = DATA / "marker-defaults"
|
||||
|
||||
|
||||
def make_read_only(path: Path) -> None:
|
||||
path.chmod(stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)
|
||||
|
||||
|
||||
def main() -> None:
|
||||
sources = sorted(SOURCE_DIR.glob("*.json"))
|
||||
if not sources:
|
||||
raise SystemExit("no generated marker files found; run extract_markers.py first")
|
||||
BACKUP_DIR.mkdir(parents=True, exist_ok=True)
|
||||
created = 0
|
||||
for source in sources:
|
||||
raw = json.loads(source.read_text(encoding="utf-8"))
|
||||
if raw.get("mapId") != source.stem or not isinstance(raw.get("markers"), list):
|
||||
raise SystemExit(f"invalid per-map marker file: {source.relative_to(ROOT)}")
|
||||
destination = BACKUP_DIR / source.name
|
||||
if destination.exists():
|
||||
if destination.read_bytes() != source.read_bytes():
|
||||
raise SystemExit(
|
||||
f"backup differs and was not replaced: {destination.relative_to(ROOT)}"
|
||||
)
|
||||
make_read_only(destination)
|
||||
print(f"kept {destination.relative_to(ROOT)}")
|
||||
continue
|
||||
temporary = destination.with_suffix(".json.tmp")
|
||||
shutil.copyfile(source, temporary)
|
||||
os.replace(temporary, destination)
|
||||
make_read_only(destination)
|
||||
created += 1
|
||||
print(f"created read-only {destination.relative_to(ROOT)}")
|
||||
print(f"backup ready: {len(sources)} map file(s), {created} newly created")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
+320
-45
@@ -11,6 +11,8 @@ HTML/CSS style.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from collections import Counter
|
||||
import hashlib
|
||||
import json
|
||||
import re
|
||||
import sys
|
||||
@@ -20,10 +22,15 @@ from psd_tools import PSDImage
|
||||
|
||||
from common import DATA, ROOT, find_map, load_config
|
||||
|
||||
CONTEXT = ("overlay", "onmap", "on map", "map marker", "mapmarker", "extractinformation")
|
||||
CONTEXT = (
|
||||
"overlay", "onmap", "on map", "map marker", "mapmarker",
|
||||
"extractinformation", "extractnames", "extractmarkers",
|
||||
)
|
||||
EXCLUDED = (
|
||||
"legend", "credit", "title section", "raid detail", "compass", "coloredmarkers",
|
||||
"colored markers", "mapinfo", "duration", "version",
|
||||
"colored markers", "mapinfo", "duration", "sideindicator",
|
||||
"side indicator", "extract letter overlay", "description", "requirement",
|
||||
"only for bw", "onlyforbw",
|
||||
)
|
||||
LEAF_KINDS = {"type", "smartobject", "pixel"}
|
||||
GENERIC = re.compile(
|
||||
@@ -39,6 +46,38 @@ CATEGORY_LABELS = {
|
||||
"cache": "Cache", "key": "Key", "loot": "Loot", "hazard": "Hazard",
|
||||
"quest": "Quest", "location": "Location", "poi": "Point of interest",
|
||||
}
|
||||
LABEL_CORRECTIONS = {
|
||||
"holeinthefence": "HOLE IN THE FENCE",
|
||||
"powerstation v-ex": "POWER STATION V-EX",
|
||||
"pier boat": "PIER BOAT",
|
||||
}
|
||||
MAP_CATEGORY_OVERRIDES = {
|
||||
("reserve", "sewer manhole"): "extract-pmc",
|
||||
}
|
||||
EXTRACT_CATEGORIES = {
|
||||
"extract-pmc", "extract-scav", "extract-neutral", "extract-hidden", "transit",
|
||||
}
|
||||
EXTRACT_LABEL_PATHS = (
|
||||
"overlay captions", "extract name text / extract text pmc",
|
||||
"extract name text / extract text scav", "extract name text / extract text neutral",
|
||||
"extract name text / transit text", "onmap exfil names / text",
|
||||
"new onmap / exfil names", "on map extract text", "extract names / pmc",
|
||||
"extract names / scav", "extract names / neutral", "extract names / transit",
|
||||
"on map overlay / extracts / text",
|
||||
)
|
||||
EXTRACT_LABEL_NOISE = (
|
||||
"requires ", "req. ", "warning", "not always", "this extract",
|
||||
"check legend", "approach exfil", "located in the sniper zone",
|
||||
)
|
||||
EXTRACT_ANCHOR_PATHS = (
|
||||
"overlay pmc extracts", "overlay scav extracts", "overlay neutral",
|
||||
"overlay transit", "overlay hidden", "extract dots", "onmap exfil icons",
|
||||
"map markers / pmc extracts", "map markers / scav extracts",
|
||||
"map markers / neutral extracts", "running man markers", "hidden exfil onmap",
|
||||
"transit onmap", "on map overlay / extracts / pmc",
|
||||
"on map overlay / extracts / scav", "on map overlay / extracts / transit",
|
||||
"extract markers for bw",
|
||||
)
|
||||
|
||||
|
||||
def clean_name(value: str) -> str:
|
||||
@@ -53,6 +92,7 @@ def clean_name(value: str) -> str:
|
||||
def display_label(category: str, value: str) -> str:
|
||||
value = clean_name(value)
|
||||
lower = value.lower()
|
||||
value = LABEL_CORRECTIONS.get(lower, value)
|
||||
noisy = (not any(char.isalnum() for char in value)
|
||||
or GENERIC.match(value)
|
||||
or len(value) > 48
|
||||
@@ -66,25 +106,34 @@ def display_label(category: str, value: str) -> str:
|
||||
return CATEGORY_LABELS[category]
|
||||
if noisy:
|
||||
return CATEGORY_LABELS.get(category, "Point of interest")
|
||||
if category in EXTRACT_CATEGORIES:
|
||||
return value.upper()
|
||||
return value or CATEGORY_LABELS.get(category, "Point of interest")
|
||||
|
||||
|
||||
def category_for(path: tuple[str, ...]) -> str | None:
|
||||
text = " / ".join(path).lower().replace("_", " ")
|
||||
if any(term in text for term in EXCLUDED):
|
||||
excluded = [term for term in EXCLUDED if term != "legend" and not (
|
||||
term in {"only for bw", "onlyforbw"} and "extractmarkersforbw" in text.replace(" ", "")
|
||||
)]
|
||||
if any(term in text for term in excluded):
|
||||
return None
|
||||
# Several real on-map icons retain source names such as PMCLegend copy.
|
||||
# Exclude legend artwork by location, not merely by a leaf-name fragment.
|
||||
if "legend" in text and not any(term in text for term in EXTRACT_ANCHOR_PATHS):
|
||||
return None
|
||||
if not any(term in text for term in CONTEXT):
|
||||
return None
|
||||
|
||||
if "extract" in text or "exfil" in text:
|
||||
if "scav" in text:
|
||||
return "extract-scav"
|
||||
if "neutral" in text:
|
||||
if "transit" in text:
|
||||
return "transit"
|
||||
if "co-op" in text or "coop" in text or "neutral" in text:
|
||||
return "extract-neutral"
|
||||
if "hidden" in text:
|
||||
return "extract-hidden"
|
||||
if "transit" in text:
|
||||
return "transit"
|
||||
if "scav" in text:
|
||||
return "extract-scav"
|
||||
return "extract-pmc"
|
||||
if "overlay captions" in text:
|
||||
if "scav" in text:
|
||||
@@ -121,9 +170,130 @@ def category_for(path: tuple[str, ...]) -> str | None:
|
||||
return "hazard"
|
||||
if "quest" in text:
|
||||
return "quest"
|
||||
if any(term in text for term in ("location", "caption", "house name", "housename", "text")):
|
||||
if any(term in text for term in ("location", "caption", "house name", "housename", "room")):
|
||||
return "location"
|
||||
return "poi"
|
||||
if any(term in text for term in ("poi", "point of interest", "note", "address")):
|
||||
return "poi"
|
||||
return None
|
||||
|
||||
|
||||
def normalized_path(path: tuple[str, ...]) -> str:
|
||||
return " / ".join(clean_name(part).lower().replace("_", " ") for part in path)
|
||||
|
||||
|
||||
def is_extract_label_path(path: tuple[str, ...], label: str) -> bool:
|
||||
text = normalized_path(path)
|
||||
return (any(term in text for term in EXTRACT_LABEL_PATHS)
|
||||
and not label.lower().startswith(EXTRACT_LABEL_NOISE))
|
||||
|
||||
|
||||
def explicit_extract_category(path: tuple[str, ...], label: str) -> str | None:
|
||||
lower_label = label.lower()
|
||||
if ("smuggler" in lower_label and "basement" in lower_label) \
|
||||
or "passage by the lake" in lower_label:
|
||||
return "extract-hidden"
|
||||
if any(term in lower_label for term in ("co-op", "coop")) \
|
||||
or any(term in lower_label for term in (
|
||||
"scav camp", "factory gate", "scav lands", "emercom checkpoint",
|
||||
"railway exfil", "armored train", "bunker hermetic door",
|
||||
"road to customs", "smuggler’s path", "smuggler's path",
|
||||
)):
|
||||
return "extract-neutral"
|
||||
# Walk from the leaf upward so a direct PMC/SCAV subgroup wins over a
|
||||
# broad ancestor such as Shoreline's "Hidden + Transit" container.
|
||||
for raw_part in reversed(path):
|
||||
part = clean_name(raw_part).lower().replace("_", " ")
|
||||
words = set(re.findall(r"[a-z]+", part))
|
||||
if "neutral" in words or ("pmc" in words and "scav" in words):
|
||||
return "extract-neutral"
|
||||
if part in {"scav", "scav extracts", "extract dots scav", "extract dot scav"}:
|
||||
return "extract-scav"
|
||||
if part in {"pmc", "pmc extracts", "extract dots pmc", "extract dot pmc"}:
|
||||
return "extract-pmc"
|
||||
if part in {"hidden", "hidden exfil", "hidden exfil onmap"}:
|
||||
return "extract-hidden"
|
||||
if part in {"transit", "transits", "transit dots", "transit onmap"}:
|
||||
return "transit"
|
||||
return None
|
||||
|
||||
|
||||
def semantic_path_label(path: tuple[str, ...], category: str) -> str:
|
||||
ignored = {
|
||||
"icons", "main", "letters", "text", "pmc", "scav", "neutral", "hidden",
|
||||
"transit", "extracts", "extract dots", "extract dot pmc", "extract dots scav",
|
||||
"extract dots neutral", "transit dots", "onmap", "overlay", "overlays",
|
||||
"markers", "running man markers", "on map extract information",
|
||||
"neutral extracts", "pmc extracts", "scav extracts",
|
||||
"transit letters", "transit onmap", "hidden+transit", "re3mr.com",
|
||||
}
|
||||
for part in reversed(path[:-1]):
|
||||
label = clean_name(part)
|
||||
normalized = label.lower().replace("_", " ")
|
||||
if normalized in ignored or any(term in normalized for term in ("copy", "background")):
|
||||
continue
|
||||
if normalized.startswith(("overlay ", "onmap ", "extract", "map marker")):
|
||||
continue
|
||||
if len(label) > 2:
|
||||
return display_label(category, label)
|
||||
return CATEGORY_LABELS[category]
|
||||
|
||||
|
||||
def point_segment_distance(px: float, py: float, ax: float, ay: float,
|
||||
bx: float, by: float) -> float:
|
||||
dx, dy = bx - ax, by - ay
|
||||
if dx == 0 and dy == 0:
|
||||
return ((px - ax) ** 2 + (py - ay) ** 2) ** 0.5
|
||||
t = max(0.0, min(1.0, ((px - ax) * dx + (py - ay) * dy) / (dx * dx + dy * dy)))
|
||||
qx, qy = ax + t * dx, ay + t * dy
|
||||
return ((px - qx) ** 2 + (py - qy) ** 2) ** 0.5
|
||||
|
||||
|
||||
def inside_playable(m: dict, x: float, y: float, margin: float = 0.018) -> bool:
|
||||
points = m.get("trim", {}).get("points", [])
|
||||
if len(points) < 3:
|
||||
return True
|
||||
inside = False
|
||||
for index, (xi, yi) in enumerate(points):
|
||||
xj, yj = points[index - 1]
|
||||
if (yi > y) != (yj > y) and x < (xj - xi) * (y - yi) / (yj - yi) + xi:
|
||||
inside = not inside
|
||||
if point_segment_distance(x, y, xi, yi, xj, yj) <= margin:
|
||||
return True
|
||||
return inside
|
||||
|
||||
|
||||
def cluster_candidates(candidates: list[dict], radius: float) -> list[dict]:
|
||||
clusters: list[list[dict]] = []
|
||||
for candidate in sorted(candidates, key=lambda item: -item["score"]):
|
||||
cluster = next((items for items in clusters
|
||||
if items[0]["category"] == candidate["category"]
|
||||
and (sum(item["x"] for item in items) / len(items) - candidate["x"]) ** 2
|
||||
+ (sum(item["y"] for item in items) / len(items) - candidate["y"]) ** 2
|
||||
< radius ** 2), None)
|
||||
if cluster is None:
|
||||
clusters.append([candidate])
|
||||
else:
|
||||
cluster.append(candidate)
|
||||
result = []
|
||||
for items in clusters:
|
||||
best = max(items, key=lambda item: item["score"])
|
||||
result.append({
|
||||
**best,
|
||||
"x": sum(item["x"] for item in items) / len(items),
|
||||
"y": sum(item["y"] for item in items) / len(items),
|
||||
})
|
||||
return result
|
||||
|
||||
|
||||
def anchor_matches_label(anchor_label: str, label: str) -> bool:
|
||||
ignored = {"extract", "exfil", "transit", "to", "of", "tarkov", "v", "ex"}
|
||||
anchor_words = set(re.findall(r"[a-z0-9]+", anchor_label.lower())) - ignored
|
||||
label_words = set(re.findall(r"[a-z0-9]+", label.lower())) - ignored
|
||||
if anchor_words and anchor_words <= label_words:
|
||||
return True
|
||||
compact_anchor = re.sub(r"[^a-z0-9]", "", anchor_label.lower())
|
||||
compact_label = re.sub(r"[^a-z0-9]", "", label.lower())
|
||||
return len(compact_anchor) >= 5 and compact_anchor in compact_label
|
||||
|
||||
|
||||
def layer_text(layer) -> str:
|
||||
@@ -165,6 +335,8 @@ def extract_map(m: dict, source_root: Path | None) -> list[dict]:
|
||||
left, top, right, bottom = map(float, crop)
|
||||
width, height = right - left, bottom - top
|
||||
candidates: list[dict] = []
|
||||
extract_labels: list[dict] = []
|
||||
extract_anchors: list[dict] = []
|
||||
|
||||
def walk(node, prefix: tuple[str, ...], ancestors_visible: bool) -> None:
|
||||
for layer in node:
|
||||
@@ -190,33 +362,139 @@ def extract_map(m: dict, source_root: Path | None) -> list[dict]:
|
||||
label = layer_text(layer)
|
||||
if label in {"☠", "☢"}:
|
||||
category = "hazard"
|
||||
label = display_label(category, label)
|
||||
candidates.append({
|
||||
record = {
|
||||
"x": (cx - left) / width,
|
||||
"y": (cy - top) / height,
|
||||
"category": category,
|
||||
"label": label,
|
||||
"label": display_label(category, label),
|
||||
"source": "/".join(layer_path),
|
||||
"score": marker_score(layer, label),
|
||||
})
|
||||
}
|
||||
if category in EXTRACT_CATEGORIES:
|
||||
path_text = normalized_path(layer_path)
|
||||
label_context = any(term in path_text for term in EXTRACT_LABEL_PATHS)
|
||||
if label_context:
|
||||
if layer.kind != "type" or not is_extract_label_path(layer_path, label):
|
||||
continue
|
||||
explicit = explicit_extract_category(layer_path, label)
|
||||
explicit = MAP_CATEGORY_OVERRIDES.get(
|
||||
(m["id"], clean_name(label).lower()), explicit,
|
||||
)
|
||||
record["explicitCategory"] = explicit
|
||||
if explicit:
|
||||
record["category"] = explicit
|
||||
record["label"] = display_label(record["category"], label)
|
||||
extract_labels.append(record)
|
||||
else:
|
||||
if not any(term in path_text for term in EXTRACT_ANCHOR_PATHS):
|
||||
continue
|
||||
# Some PSDs place PMC and Scav marker groups inside a broad
|
||||
# "Hidden + Transit" parent. Prefer the closest semantic
|
||||
# group over that inherited parent-folder wording.
|
||||
explicit = explicit_extract_category(layer_path, label)
|
||||
if explicit:
|
||||
record["category"] = explicit
|
||||
leaf_label = display_label(record["category"], label)
|
||||
if layer.kind == "type" and len(clean_name(label)) > 4 \
|
||||
and not GENERIC.match(clean_name(label)):
|
||||
record["label"] = leaf_label
|
||||
else:
|
||||
record["label"] = semantic_path_label(layer_path, record["category"])
|
||||
extract_anchors.append(record)
|
||||
else:
|
||||
candidates.append(record)
|
||||
|
||||
walk(psd, (), True)
|
||||
|
||||
# A logical PSD marker is often two or three co-located leaves (background,
|
||||
# icon and type). Keep the most semantic record within each small cluster.
|
||||
kept: list[dict] = []
|
||||
for candidate in sorted(candidates, key=lambda item: -item["score"]):
|
||||
duplicate = next((item for item in kept if item["category"] == candidate["category"]
|
||||
and (item["x"] - candidate["x"]) ** 2
|
||||
+ (item["y"] - candidate["y"]) ** 2 < 0.0035 ** 2), None)
|
||||
if duplicate:
|
||||
# PSD extracts are usually represented twice: a semantic text label and a
|
||||
# nearby icon made from several leaves. Cluster the icon components, then
|
||||
# pair each visible on-map name with its nearest compatible icon. This
|
||||
# keeps the exact extract position and readable name without duplicating
|
||||
# the background, letter, caption and side-indicator layers.
|
||||
anchors = cluster_candidates(extract_anchors, 0.01)
|
||||
used_anchors: set[int] = set()
|
||||
extracts: list[dict] = []
|
||||
unmatched_labels = set(range(len(extract_labels)))
|
||||
|
||||
# Assign globally closest pairs first. A top-to-bottom greedy pass can
|
||||
# steal a nearby icon from the correct label on dense maps such as Shoreline.
|
||||
pairs = []
|
||||
for label_index, label in enumerate(extract_labels):
|
||||
explicit = label.get("explicitCategory")
|
||||
special_neutral = explicit == "extract-neutral" and any(
|
||||
term in label["label"].lower() for term in ("co-op", "coop", "scav camp", "factory gate", "scav lands")
|
||||
)
|
||||
for anchor_index, anchor in enumerate(anchors):
|
||||
if explicit is not None and not special_neutral and anchor["category"] != explicit:
|
||||
continue
|
||||
distance = ((anchor["x"] - label["x"]) ** 2
|
||||
+ (anchor["y"] - label["y"]) ** 2)
|
||||
if distance <= 0.12 ** 2:
|
||||
pairs.append((distance, label_index, anchor_index))
|
||||
|
||||
for _, label_index, anchor_index in sorted(pairs):
|
||||
if label_index not in unmatched_labels or anchor_index in used_anchors:
|
||||
continue
|
||||
candidate.pop("score")
|
||||
kept.append(candidate)
|
||||
label = extract_labels[label_index]
|
||||
anchor = anchors[anchor_index]
|
||||
explicit = label.get("explicitCategory")
|
||||
unmatched_labels.remove(label_index)
|
||||
used_anchors.add(anchor_index)
|
||||
anchor_is_playable = inside_playable(m, anchor["x"], anchor["y"])
|
||||
extracts.append({
|
||||
**label,
|
||||
"x": anchor["x"] if anchor_is_playable else label["x"],
|
||||
"y": anchor["y"] if anchor_is_playable else label["y"],
|
||||
"category": explicit or anchor["category"],
|
||||
})
|
||||
|
||||
for label_index in sorted(unmatched_labels):
|
||||
extracts.append(extract_labels[label_index])
|
||||
unmatched = [anchor for index, anchor in enumerate(anchors) if index not in used_anchors]
|
||||
unmatched_by_name: dict[tuple[str, str], dict] = {}
|
||||
for anchor in unmatched:
|
||||
if anchor["label"] == CATEGORY_LABELS[anchor["category"]]:
|
||||
continue
|
||||
if any(anchor_matches_label(anchor["label"], label["label"])
|
||||
for label in extract_labels):
|
||||
continue
|
||||
key = (anchor["category"], anchor["label"].lower())
|
||||
existing = unmatched_by_name.get(key)
|
||||
if existing is None or anchor["source"].lower().count("copy") \
|
||||
< existing["source"].lower().count("copy"):
|
||||
unmatched_by_name[key] = anchor
|
||||
extracts.extend(unmatched_by_name.values())
|
||||
icon_summary = ", ".join(
|
||||
f"{category}={count}" for category, count in sorted(Counter(
|
||||
anchor["category"] for anchor in anchors
|
||||
).items())
|
||||
)
|
||||
print(f"[{m['id']}] reconciled {len(extract_labels)} extract label(s) "
|
||||
f"with {len(anchors)} icon cluster(s) ({icon_summary or 'none'}) "
|
||||
f"into {len(extracts)} marker(s)")
|
||||
|
||||
# Non-extract icons still commonly contain a background, glyph and label.
|
||||
# A slightly larger visual cluster removes those redundant leaves.
|
||||
if m.get("parent"):
|
||||
extracts = []
|
||||
kept = cluster_candidates(candidates, 0.006) + extracts
|
||||
kept = [item for item in kept if inside_playable(m, item["x"], item["y"])]
|
||||
for marker in kept:
|
||||
marker.pop("score", None)
|
||||
marker.pop("explicitCategory", None)
|
||||
|
||||
kept.sort(key=lambda item: (item["category"], item["y"], item["x"]))
|
||||
for index, marker in enumerate(kept, 1):
|
||||
marker["id"] = f"{m['id']}-{index}"
|
||||
used_ids: set[str] = set()
|
||||
for marker in kept:
|
||||
seed = f"{marker['source']}|{marker['category']}|{marker['x']:.5f}|{marker['y']:.5f}"
|
||||
digest = hashlib.sha1(seed.encode("utf-8")).hexdigest()[:12]
|
||||
marker_id = f"{m['id']}-{digest}"
|
||||
suffix = 2
|
||||
while marker_id in used_ids:
|
||||
marker_id = f"{m['id']}-{digest}-{suffix}"
|
||||
suffix += 1
|
||||
used_ids.add(marker_id)
|
||||
marker["id"] = marker_id
|
||||
marker["mapId"] = m["id"]
|
||||
print(f"[{m['id']}] extracted {len(kept)} marker(s)")
|
||||
return kept
|
||||
@@ -234,31 +512,28 @@ def main(argv: list[str]) -> None:
|
||||
|
||||
cfg = load_config()
|
||||
targets = [find_map(cfg, map_id) for map_id in argv] if argv else cfg.maps
|
||||
destination = DATA / "markers.json"
|
||||
markers = []
|
||||
successful: set[str] = set()
|
||||
destination_dir = DATA / "markers"
|
||||
destination_dir.mkdir(parents=True, exist_ok=True)
|
||||
written = 0
|
||||
errors = []
|
||||
for m in targets:
|
||||
try:
|
||||
markers.extend(extract_map(m, source_root))
|
||||
successful.add(m["id"])
|
||||
markers = extract_map(m, source_root)
|
||||
for marker in markers:
|
||||
marker["label"] = display_label(marker["category"], marker.get("label", ""))
|
||||
markers.sort(key=lambda item: (item["category"], item["id"]))
|
||||
destination = destination_dir / f"{m['id']}.json"
|
||||
destination.write_text(json.dumps({
|
||||
"version": 2,
|
||||
"mapId": m["id"],
|
||||
"markers": markers,
|
||||
}, indent=2) + "\n", encoding="utf-8")
|
||||
written += len(markers)
|
||||
print(f"wrote {destination.relative_to(ROOT)} with {len(markers)} marker(s)")
|
||||
except Exception as exc: # noqa: BLE001
|
||||
errors.append(f"{m['id']}: {exc}")
|
||||
print(f"[{m['id']}] SKIPPED: {exc}")
|
||||
|
||||
# Targeted runs replace only the maps successfully extracted. This makes
|
||||
# `extract_markers.py customs` safe after a complete build, and preserves
|
||||
# the previous records for a PSD that is temporarily unavailable.
|
||||
if destination.exists():
|
||||
previous = json.loads(destination.read_text(encoding="utf-8")).get("markers", [])
|
||||
markers = [item for item in previous if item.get("mapId") not in successful] + markers
|
||||
for marker in markers:
|
||||
marker["label"] = display_label(marker["category"], marker.get("label", ""))
|
||||
markers.sort(key=lambda item: (item["mapId"], item["category"], item["id"]))
|
||||
|
||||
DATA.mkdir(parents=True, exist_ok=True)
|
||||
destination.write_text(json.dumps({"version": 1, "markers": markers}, indent=2), encoding="utf-8")
|
||||
print(f"wrote {destination.relative_to(ROOT)} with {len(markers)} marker(s)")
|
||||
print(f"wrote {written} marker(s) across {len(targets) - len(errors)} map file(s)")
|
||||
if errors:
|
||||
print("skipped maps: " + "; ".join(errors))
|
||||
|
||||
|
||||
@@ -0,0 +1,199 @@
|
||||
"""Render flattened PSD references beside the semantic marker layer.
|
||||
|
||||
The PSD merged preview is the saved composite of every visible layer. The
|
||||
right-hand audit image uses the marker-free base raster plus the extracted
|
||||
semantic markers, making missing, duplicated and off-map records easy to spot.
|
||||
|
||||
python tools/render_marker_audit.py --source-root C:/path/to/checkout
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
from PIL import Image, ImageDraw, ImageFont
|
||||
from psd_tools import PSDImage
|
||||
|
||||
from common import DATA, ROOT, find_map, load_config
|
||||
|
||||
MAX_PANEL = (1500, 1050)
|
||||
EXTRACT_CATEGORIES = {
|
||||
"extract-pmc", "extract-scav", "extract-neutral", "extract-hidden", "transit",
|
||||
}
|
||||
|
||||
|
||||
def font(size: int, bold: bool = False):
|
||||
choices = [
|
||||
Path("C:/Windows/Fonts/seguisb.ttf" if bold else "C:/Windows/Fonts/segoeui.ttf"),
|
||||
Path("/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf" if bold
|
||||
else "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf"),
|
||||
]
|
||||
for path in choices:
|
||||
if path.exists():
|
||||
return ImageFont.truetype(str(path), size)
|
||||
return ImageFont.load_default()
|
||||
|
||||
|
||||
def flattened(psd: PSDImage) -> Image.Image:
|
||||
image = psd.topil()
|
||||
if image is None:
|
||||
image = psd.composite()
|
||||
if image is None:
|
||||
raise RuntimeError("PSD has neither a merged preview nor a compositable image")
|
||||
return image.convert("RGBA")
|
||||
|
||||
|
||||
def on_dark(image: Image.Image) -> Image.Image:
|
||||
result = Image.new("RGB", image.size, "#171a1f")
|
||||
if image.mode != "RGBA":
|
||||
image = image.convert("RGBA")
|
||||
result.paste(image, mask=image.getchannel("A"))
|
||||
return result
|
||||
|
||||
|
||||
def fit(image: Image.Image, size=MAX_PANEL) -> Image.Image:
|
||||
image = image.copy()
|
||||
image.thumbnail(size, Image.Resampling.LANCZOS)
|
||||
return image
|
||||
|
||||
|
||||
def merged_markers() -> list[dict]:
|
||||
markers = []
|
||||
marker_dir = DATA / "markers"
|
||||
edit_dir = DATA / "marker-edits"
|
||||
for marker_path in sorted(marker_dir.glob("*.json")):
|
||||
raw = json.loads(marker_path.read_text(encoding="utf-8"))
|
||||
edits_path = edit_dir / marker_path.name
|
||||
edits = json.loads(edits_path.read_text(encoding="utf-8")) \
|
||||
if edits_path.exists() else {}
|
||||
overrides = edits.get("overrides", {})
|
||||
deleted = set(edits.get("deleted", []))
|
||||
selected = [{**item, **overrides.get(item["id"], {})}
|
||||
for item in raw.get("markers", []) if item["id"] not in deleted]
|
||||
ids = {item["id"] for item in selected}
|
||||
selected.extend(item for item in edits.get("added", []) if item.get("id") not in ids)
|
||||
markers.extend(selected)
|
||||
return markers
|
||||
|
||||
|
||||
def marker_overlay(base: Image.Image, markers: list[dict], config: dict) -> Image.Image:
|
||||
image = fit(on_dark(base.convert("RGBA")))
|
||||
draw = ImageDraw.Draw(image)
|
||||
sx, sy = image.width / base.width, image.height / base.height
|
||||
categories = config.get("categories", {})
|
||||
label_font = font(13, True)
|
||||
small_font = font(11, True)
|
||||
for marker in markers:
|
||||
category = marker.get("category", "poi")
|
||||
settings = categories.get(category, {})
|
||||
x = float(marker["x"]) * base.width * sx
|
||||
y = float(marker["y"]) * base.height * sy
|
||||
extract = category in EXTRACT_CATEGORIES
|
||||
radius = 10 if extract else max(4, min(8, int(settings.get("size", 16) * 0.38)))
|
||||
color = settings.get("color", "#6c7682")
|
||||
outline = "#ffffff" if extract else "#e8edf2"
|
||||
draw.ellipse((x - radius, y - radius, x + radius, y + radius), fill=color,
|
||||
outline=outline, width=3 if extract else 2)
|
||||
symbol = str(settings.get("symbol", "•"))
|
||||
if symbol.isascii() and len(symbol) <= 2:
|
||||
box = draw.textbbox((0, 0), symbol, font=small_font)
|
||||
draw.text((x - (box[2] - box[0]) / 2, y - (box[3] - box[1]) / 2 - 1),
|
||||
symbol, fill="white", font=small_font)
|
||||
if extract:
|
||||
label = str(marker.get("label") or settings.get("label") or category)
|
||||
box = draw.textbbox((0, 0), label, font=label_font)
|
||||
tx, ty = x + radius + 4, y - (box[3] - box[1]) / 2
|
||||
draw.rounded_rectangle((tx - 3, ty - 2, tx + box[2] - box[0] + 3,
|
||||
ty + box[3] - box[1] + 3), radius=3, fill="#0c1115e6")
|
||||
draw.text((tx, ty), label, fill="white", font=label_font)
|
||||
return image
|
||||
|
||||
|
||||
def full_reference(image: Image.Image, crop: tuple[int, int, int, int]) -> Image.Image:
|
||||
full = fit(on_dark(image), (1600, 1200))
|
||||
draw = ImageDraw.Draw(full)
|
||||
sx, sy = full.width / image.width, full.height / image.height
|
||||
left, top, right, bottom = crop
|
||||
draw.rectangle((left * sx, top * sy, right * sx, bottom * sy), outline="#ffcf4a", width=3)
|
||||
draw.text((12, 10), "Yellow rectangle = configured map crop", fill="#ffcf4a",
|
||||
font=font(16, True), stroke_width=2, stroke_fill="#111111")
|
||||
return full
|
||||
|
||||
|
||||
def comparison(map_name: str, reference: Image.Image, semantic: Image.Image,
|
||||
count: int, extract_count: int) -> Image.Image:
|
||||
header = 54
|
||||
gap = 12
|
||||
width = reference.width + semantic.width + gap
|
||||
height = max(reference.height, semantic.height) + header
|
||||
canvas = Image.new("RGB", (width, height), "#101317")
|
||||
canvas.paste(reference, (0, header))
|
||||
canvas.paste(semantic, (reference.width + gap, header))
|
||||
draw = ImageDraw.Draw(canvas)
|
||||
draw.text((10, 8), f"{map_name}: flattened visible PSD", fill="white", font=font(18, True))
|
||||
draw.text((reference.width + gap + 10, 8),
|
||||
f"semantic layer: {count} markers / {extract_count} extracts",
|
||||
fill="white", font=font(18, True))
|
||||
return canvas
|
||||
|
||||
|
||||
def make_contact_sheet(paths: list[Path], output: Path) -> None:
|
||||
thumbs = []
|
||||
for path in paths:
|
||||
with Image.open(path) as image:
|
||||
thumbs.append(fit(image.convert("RGB"), (760, 430)))
|
||||
cols = 2
|
||||
rows = (len(thumbs) + cols - 1) // cols
|
||||
sheet = Image.new("RGB", (cols * 770, rows * 440), "#0d1014")
|
||||
for index, image in enumerate(thumbs):
|
||||
sheet.paste(image, ((index % cols) * 770, (index // cols) * 440))
|
||||
sheet.save(output, "JPEG", quality=90, optimize=True)
|
||||
|
||||
|
||||
def main() -> None:
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("ids", nargs="*")
|
||||
parser.add_argument("--source-root", type=Path)
|
||||
parser.add_argument("--output", type=Path, default=ROOT / "build" / "marker-audit")
|
||||
args = parser.parse_args()
|
||||
cfg = load_config()
|
||||
maps = [find_map(cfg, item) for item in args.ids] if args.ids else cfg.maps
|
||||
maps = [item for item in maps if not item.get("base")]
|
||||
markers = merged_markers()
|
||||
marker_config = json.loads((DATA / "marker-config.json").read_text(encoding="utf-8"))
|
||||
args.output.mkdir(parents=True, exist_ok=True)
|
||||
comparisons = []
|
||||
|
||||
for item in maps:
|
||||
local = ROOT / item["psd"]
|
||||
source = local if local.exists() else (args.source_root / item["psd"] if args.source_root else local)
|
||||
print(f"[{item['id']}] flattening {source}", flush=True)
|
||||
psd = PSDImage.open(source)
|
||||
image = flattened(psd)
|
||||
crop = tuple(map(int, item.get("crop") or (0, 0, psd.width, psd.height)))
|
||||
cropped_source = image.crop(crop)
|
||||
cropped = fit(on_dark(cropped_source))
|
||||
full = full_reference(image, crop)
|
||||
full.save(args.output / f"{item['id']}-visible-full.jpg", "JPEG", quality=91)
|
||||
|
||||
# Keep both audit panes on the exact same flattened PSD crop. Generated
|
||||
# build images can be stale after crop or alignment edits.
|
||||
selected = [marker for marker in markers if marker.get("mapId") == item["id"]]
|
||||
semantic = fit(marker_overlay(cropped_source, selected, marker_config))
|
||||
extracts = sum(marker.get("category") in EXTRACT_CATEGORIES for marker in selected)
|
||||
result = comparison(item.get("name", item["id"]), cropped, semantic,
|
||||
len(selected), extracts)
|
||||
path = args.output / f"{item['id']}-comparison.jpg"
|
||||
result.save(path, "JPEG", quality=92)
|
||||
comparisons.append(path)
|
||||
print(f"[{item['id']}] wrote {path.name}", flush=True)
|
||||
del psd, image, cropped, full, semantic, result
|
||||
|
||||
make_contact_sheet(comparisons, args.output / "all-comparisons.jpg")
|
||||
print(f"wrote {args.output / 'all-comparisons.jpg'}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
+803
-42
@@ -95,14 +95,14 @@ function readHash() {
|
||||
}
|
||||
|
||||
async function main() {
|
||||
const [world, markerData] = await Promise.all([
|
||||
const [world, markerConfig] = await Promise.all([
|
||||
fetch('data/world.json', { cache: 'no-cache' }).then((r) => {
|
||||
if (!r.ok) throw new Error(`world.json: ${r.status}`);
|
||||
return r.json();
|
||||
}),
|
||||
fetch('data/markers.json', { cache: 'no-cache' })
|
||||
.then((r) => (r.ok ? r.json() : { markers: [] }))
|
||||
.catch(() => ({ markers: [] })),
|
||||
fetch('data/marker-config.json', { cache: 'no-cache' })
|
||||
.then((r) => (r.ok ? r.json() : { defaults: {}, groups: [], categories: {} }))
|
||||
.catch(() => ({ defaults: {}, groups: [], categories: {} })),
|
||||
]);
|
||||
if (!world.maps.length) throw new Error('world.json contains no maps');
|
||||
|
||||
@@ -328,55 +328,469 @@ async function main() {
|
||||
// --- semantic PSD markers --------------------------------------------
|
||||
const markerPane = map.createPane('semantic-markers');
|
||||
markerPane.style.zIndex = '900';
|
||||
markerPane.style.pointerEvents = 'none';
|
||||
const markerLayer = L.layerGroup();
|
||||
const markerLayersByMap = new Map();
|
||||
const markerSymbols = {
|
||||
'extract-pmc': '↗', 'extract-scav': '↗', 'extract-neutral': '↗',
|
||||
'extract-hidden': '↗', transit: 'T', spawn: 'P', scav: 'S', boss: 'B',
|
||||
cultist: 'C', sniper: '△', cache: '◇', key: 'K', loot: 'L', hazard: '!',
|
||||
quest: '?', location: '•', poi: '•',
|
||||
};
|
||||
const escapeHTML = (value) => String(value ?? '').replace(
|
||||
/[&<>"']/g, (char) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[char]),
|
||||
);
|
||||
const markerMaps = new Map(world.maps.map((m) => [m.id, m]));
|
||||
for (const marker of markerData.markers ?? []) {
|
||||
const markerDefaults = {
|
||||
color: '#5d6876', size: 18, symbol: '•', displayText: false,
|
||||
defaultVisible: true, labelMinZoom: 6, extractLabelMinZoom: 2,
|
||||
gridSize: 2048, viewportPadding: 0.15,
|
||||
...(markerConfig.defaults ?? {}),
|
||||
};
|
||||
const extractCategories = new Set([
|
||||
'extract-pmc', 'extract-scav', 'extract-neutral', 'extract-hidden', 'transit',
|
||||
]);
|
||||
const markerVisibilityVersion = Number(markerConfig.visibilityVersion) || 1;
|
||||
const categoryStorageKey = (category) => (
|
||||
`tarkov-marker-v${markerVisibilityVersion}-category-${category}`
|
||||
);
|
||||
const categoryConfig = (category) => ({
|
||||
...markerDefaults,
|
||||
...(markerConfig.categories?.[category] ?? {}),
|
||||
});
|
||||
const safeColor = (value) => (
|
||||
typeof value === 'string' && CSS.supports('color', value) ? value : markerDefaults.color
|
||||
);
|
||||
const safeSize = (value) => Math.max(8, Math.min(40, Number(value) || markerDefaults.size));
|
||||
const gridSize = Math.max(256, Number(markerDefaults.gridSize) || 2048);
|
||||
const markerIndex = new Map();
|
||||
const markerCounts = new Map();
|
||||
const markerRecords = new Map();
|
||||
const categoryCountNodes = new Map();
|
||||
const markerEditing = {
|
||||
active: false,
|
||||
selectedMapId: null,
|
||||
selectedMarkerId: null,
|
||||
dropping: false,
|
||||
draft: null,
|
||||
draftMarker: null,
|
||||
};
|
||||
let selectEditableMarker = () => {};
|
||||
let saveDraggedMarker = () => {};
|
||||
|
||||
// World-space grid index: panning queries only intersecting cells rather
|
||||
// than scanning or instantiating all PSD records.
|
||||
const indexMarker = (marker) => {
|
||||
const m = markerMaps.get(marker.mapId);
|
||||
if (!m || !Number.isFinite(marker.x) || !Number.isFinite(marker.y)) continue;
|
||||
if (!m || !Number.isFinite(marker.x) || !Number.isFinite(marker.y)) return null;
|
||||
const category = String(marker.category || 'poi').replace(/[^a-z0-9-]/gi, '');
|
||||
const label = marker.label || category.replaceAll('-', ' ');
|
||||
const icon = L.divIcon({
|
||||
className: `poi-icon marker-${category}`,
|
||||
iconSize: [18, 18],
|
||||
iconAnchor: [9, 9],
|
||||
html: '<span class="poi-content" aria-hidden="true">'
|
||||
+ `<span class="poi-dot">${escapeHTML(markerSymbols[category] ?? '•')}</span>`
|
||||
+ `<span class="poi-label">${escapeHTML(label)}</span></span>`,
|
||||
});
|
||||
if (!markerLayersByMap.has(m.id)) markerLayersByMap.set(m.id, L.layerGroup());
|
||||
L.marker([
|
||||
m.origin[1] + marker.y * m.size[1],
|
||||
m.origin[0] + marker.x * m.size[0],
|
||||
], { icon, pane: 'semantic-markers', interactive: false, keyboard: false })
|
||||
.addTo(markerLayersByMap.get(m.id));
|
||||
const record = {
|
||||
...marker,
|
||||
category,
|
||||
worldX: m.origin[0] + marker.x * m.size[0],
|
||||
worldY: m.origin[1] + marker.y * m.size[1],
|
||||
mapName: m.name,
|
||||
};
|
||||
markerRecords.set(record.id, record);
|
||||
if (!markerIndex.has(m.id)) markerIndex.set(m.id, new Map());
|
||||
const cell = `${Math.floor(record.worldX / gridSize)},${Math.floor(record.worldY / gridSize)}`;
|
||||
const cells = markerIndex.get(m.id);
|
||||
if (!cells.has(cell)) cells.set(cell, []);
|
||||
cells.get(cell).push(record);
|
||||
markerCounts.set(category, (markerCounts.get(category) ?? 0) + 1);
|
||||
return record;
|
||||
};
|
||||
const removeIndexedMarker = (id) => {
|
||||
const record = markerRecords.get(id);
|
||||
if (!record) return;
|
||||
const cell = `${Math.floor(record.worldX / gridSize)},${Math.floor(record.worldY / gridSize)}`;
|
||||
const cells = markerIndex.get(record.mapId);
|
||||
const records = cells?.get(cell);
|
||||
if (records) {
|
||||
const index = records.findIndex((item) => item.id === id);
|
||||
if (index >= 0) records.splice(index, 1);
|
||||
if (!records.length) cells.delete(cell);
|
||||
}
|
||||
markerRecords.delete(id);
|
||||
markerCounts.set(record.category, Math.max(0, (markerCounts.get(record.category) ?? 1) - 1));
|
||||
const rendered = renderedMarkers?.get(id);
|
||||
if (rendered) {
|
||||
markerLayer.removeLayer(rendered);
|
||||
renderedMarkers.delete(id);
|
||||
}
|
||||
};
|
||||
const loadedMarkerMaps = new Map();
|
||||
const markerMapRequests = new Map();
|
||||
let activeMarkerMapIds = new Set();
|
||||
const fetchMarkerMap = (mapId) => {
|
||||
if (markerMapRequests.has(mapId)) return markerMapRequests.get(mapId);
|
||||
const request = Promise.all([
|
||||
fetch(`data/markers/${encodeURIComponent(mapId)}.json`, { cache: 'no-cache' })
|
||||
.then((response) => {
|
||||
if (response.status === 404) return { markers: [] };
|
||||
if (!response.ok) throw new Error(`${mapId} markers: ${response.status}`);
|
||||
return response.json();
|
||||
}),
|
||||
fetch(`data/marker-edits/${encodeURIComponent(mapId)}.json`, { cache: 'no-cache' })
|
||||
.then((response) => {
|
||||
if (response.status === 404) return { overrides: {}, added: [] };
|
||||
if (!response.ok) throw new Error(`${mapId} marker edits: ${response.status}`);
|
||||
return response.json();
|
||||
}),
|
||||
]).then(([raw, edits]) => {
|
||||
const overrides = edits.overrides ?? {};
|
||||
const deleted = new Set(edits.deleted ?? []);
|
||||
const markers = (raw.markers ?? [])
|
||||
.filter((marker) => !deleted.has(marker.id))
|
||||
.map((marker) => ({
|
||||
...marker,
|
||||
...(overrides[marker.id] ?? {}),
|
||||
}));
|
||||
const ids = new Set(markers.map((marker) => marker.id));
|
||||
markers.push(...(edits.added ?? []).filter((marker) => !ids.has(marker.id)));
|
||||
return markers;
|
||||
}).finally(() => markerMapRequests.delete(mapId));
|
||||
markerMapRequests.set(mapId, request);
|
||||
return request;
|
||||
};
|
||||
|
||||
const categoryVisible = new Map();
|
||||
const allCategories = new Set([
|
||||
...Object.keys(markerConfig.categories ?? {}),
|
||||
...markerCounts.keys(),
|
||||
]);
|
||||
for (const category of allCategories) {
|
||||
const stored = localStorage.getItem(categoryStorageKey(category));
|
||||
categoryVisible.set(category, stored === null
|
||||
? categoryConfig(category).defaultVisible !== false : stored !== 'false');
|
||||
}
|
||||
markerLayersByMap.forEach((layer) => markerLayer.addLayer(layer));
|
||||
updateMarkerFocus = (mapIds) => {
|
||||
const visible = new Set(mapIds);
|
||||
markerLayersByMap.forEach((layer, mapId) => {
|
||||
if (!visible.size || visible.has(mapId)) markerLayer.addLayer(layer);
|
||||
else markerLayer.removeLayer(layer);
|
||||
|
||||
const createMarkerIcon = (record) => {
|
||||
const settings = categoryConfig(record.category);
|
||||
const size = safeSize(settings.size);
|
||||
const color = safeColor(settings.color);
|
||||
const label = record.label || settings.label || record.category.replaceAll('-', ' ');
|
||||
const text = settings.displayText
|
||||
? `<span class="poi-label">${escapeHTML(label)}</span>` : '';
|
||||
return L.divIcon({
|
||||
className: `poi-icon marker-${record.category}${extractCategories.has(record.category) ? ' marker-extract' : ''}`,
|
||||
iconSize: [size, size],
|
||||
iconAnchor: [size / 2, size / 2],
|
||||
html: `<span class="poi-content" aria-hidden="true" style="--marker-color:${escapeHTML(color)};--marker-size:${size}px">`
|
||||
+ `<span class="poi-leader"></span>`
|
||||
+ `<span class="poi-dot">${escapeHTML(settings.symbol ?? '•')}</span>${text}</span>`,
|
||||
});
|
||||
};
|
||||
const createMarker = (record) => {
|
||||
const settings = categoryConfig(record.category);
|
||||
const size = safeSize(settings.size);
|
||||
const label = record.label || settings.label || record.category.replaceAll('-', ' ');
|
||||
const leafletMarker = L.marker([record.worldY, record.worldX], {
|
||||
icon: createMarkerIcon(record), pane: 'semantic-markers', interactive: true,
|
||||
keyboard: false, draggable: true,
|
||||
zIndexOffset: extractCategories.has(record.category) ? 5000 : 0,
|
||||
});
|
||||
leafletMarker.bindTooltip(
|
||||
`<strong>${escapeHTML(label)}</strong>`
|
||||
+ `<span>${escapeHTML(settings.label ?? record.category)} · ${escapeHTML(record.mapName)}</span>`,
|
||||
{ direction: 'top', offset: [0, -size / 2], className: 'poi-tooltip' },
|
||||
);
|
||||
leafletMarker.on('click', (event) => {
|
||||
if (!markerEditing.active) return;
|
||||
L.DomEvent.stopPropagation(event.originalEvent);
|
||||
selectEditableMarker(record.id);
|
||||
});
|
||||
leafletMarker.on('dragstart', () => {
|
||||
if (!markerEditing.active) return;
|
||||
leafletMarker.closeTooltip();
|
||||
selectEditableMarker(record.id);
|
||||
});
|
||||
leafletMarker.on('dragend', () => {
|
||||
if (markerEditing.active) saveDraggedMarker(record.id, leafletMarker);
|
||||
});
|
||||
return leafletMarker;
|
||||
};
|
||||
|
||||
let focusedMarkerIds = [];
|
||||
let markerRefreshFrame = null;
|
||||
const renderedMarkers = new Map();
|
||||
let markerLabelLayoutFrame = null;
|
||||
const labelCollisionCellSize = 128;
|
||||
const rectCells = (rect) => {
|
||||
const keys = [];
|
||||
const x0 = Math.floor(rect.left / labelCollisionCellSize);
|
||||
const x1 = Math.floor(rect.right / labelCollisionCellSize);
|
||||
const y0 = Math.floor(rect.top / labelCollisionCellSize);
|
||||
const y1 = Math.floor(rect.bottom / labelCollisionCellSize);
|
||||
for (let y = y0; y <= y1; y += 1) {
|
||||
for (let x = x0; x <= x1; x += 1) keys.push(`${x},${y}`);
|
||||
}
|
||||
return keys;
|
||||
};
|
||||
const paddedRect = (left, top, width, height, padding = 3) => ({
|
||||
left: left - padding,
|
||||
top: top - padding,
|
||||
right: left + width + padding,
|
||||
bottom: top + height + padding,
|
||||
});
|
||||
const rectsOverlap = (a, b) => (
|
||||
a.left < b.right && a.right > b.left && a.top < b.bottom && a.bottom > b.top
|
||||
);
|
||||
const layoutMarkerLabels = () => {
|
||||
const container = map.getContainer();
|
||||
const viewportWidth = container.clientWidth;
|
||||
const viewportHeight = container.clientHeight;
|
||||
if (!viewportWidth || !viewportHeight) return;
|
||||
|
||||
const occupied = new Map();
|
||||
const addOccupied = (rect) => {
|
||||
for (const key of rectCells(rect)) {
|
||||
if (!occupied.has(key)) occupied.set(key, []);
|
||||
occupied.get(key).push(rect);
|
||||
}
|
||||
};
|
||||
const overlapsOccupied = (rect) => {
|
||||
const checked = new Set();
|
||||
for (const key of rectCells(rect)) {
|
||||
for (const existing of occupied.get(key) ?? []) {
|
||||
if (checked.has(existing)) continue;
|
||||
checked.add(existing);
|
||||
if (rectsOverlap(rect, existing)) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
const containerBounds = container.getBoundingClientRect();
|
||||
const panel = document.getElementById('panel');
|
||||
if (panel) {
|
||||
const bounds = panel.getBoundingClientRect();
|
||||
addOccupied(paddedRect(
|
||||
bounds.left - containerBounds.left,
|
||||
bounds.top - containerBounds.top,
|
||||
bounds.width,
|
||||
bounds.height,
|
||||
6,
|
||||
));
|
||||
}
|
||||
|
||||
const items = [];
|
||||
for (const [id, leafletMarker] of renderedMarkers) {
|
||||
const element = leafletMarker.getElement();
|
||||
const label = element?.querySelector('.poi-label');
|
||||
const leader = element?.querySelector('.poi-leader');
|
||||
if (!label || !leader) continue;
|
||||
label.classList.remove('poi-label-hidden');
|
||||
for (const property of ['left', 'top', 'transform']) label.style.removeProperty(property);
|
||||
for (const property of ['display', 'left', 'top', 'width', 'transform']) {
|
||||
leader.style.removeProperty(property);
|
||||
}
|
||||
if (getComputedStyle(label).display === 'none') continue;
|
||||
const record = markerRecords.get(id);
|
||||
if (!record) continue;
|
||||
const settings = categoryConfig(record.category);
|
||||
const size = safeSize(settings.size);
|
||||
const point = map.latLngToContainerPoint(leafletMarker.getLatLng());
|
||||
items.push({
|
||||
id, leafletMarker, label, leader, record, size, point,
|
||||
width: Math.ceil(label.getBoundingClientRect().width),
|
||||
height: Math.ceil(label.getBoundingClientRect().height),
|
||||
});
|
||||
}
|
||||
|
||||
// Prefer not to obscure marker icons, but do not let a dense icon field
|
||||
// push a label across the viewport. Label/panel collisions remain hard
|
||||
// constraints; icon collisions are only a placement preference.
|
||||
const iconRects = [];
|
||||
for (const leafletMarker of renderedMarkers.values()) {
|
||||
const element = leafletMarker.getElement();
|
||||
if (!element) continue;
|
||||
const point = map.latLngToContainerPoint(leafletMarker.getLatLng());
|
||||
const width = element.offsetWidth || 18;
|
||||
const height = element.offsetHeight || 18;
|
||||
iconRects.push(paddedRect(point.x - width / 2, point.y - height / 2, width, height, 2));
|
||||
}
|
||||
|
||||
items.sort((a, b) => (
|
||||
Number(!extractCategories.has(a.record.category))
|
||||
- Number(!extractCategories.has(b.record.category))
|
||||
|| a.point.y - b.point.y
|
||||
|| a.point.x - b.point.x
|
||||
|| a.id.localeCompare(b.id)
|
||||
));
|
||||
|
||||
const padding = 8;
|
||||
const angles = [
|
||||
0, Math.PI, -Math.PI / 2, Math.PI / 2,
|
||||
-Math.PI / 4, Math.PI / 4, -3 * Math.PI / 4, 3 * Math.PI / 4,
|
||||
-Math.PI / 8, Math.PI / 8, -3 * Math.PI / 8, 3 * Math.PI / 8,
|
||||
-5 * Math.PI / 8, 5 * Math.PI / 8, -7 * Math.PI / 8, 7 * Math.PI / 8,
|
||||
];
|
||||
for (const item of items) {
|
||||
const { point, width, height, size, label, leader } = item;
|
||||
const radius = size / 2;
|
||||
const candidates = [];
|
||||
for (let ring = 0; ring < 8; ring += 1) {
|
||||
const clearance = radius + 8 + ring * 14;
|
||||
for (const angle of angles) {
|
||||
const dx = Math.cos(angle);
|
||||
const dy = Math.sin(angle);
|
||||
const distance = clearance + Math.abs(dx) * width / 2 + Math.abs(dy) * height / 2;
|
||||
candidates.push({
|
||||
left: point.x + dx * distance - width / 2,
|
||||
top: point.y + dy * distance - height / 2,
|
||||
displaced: ring > 0,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
let chosen = null;
|
||||
let iconOverlapFallback = null;
|
||||
for (const candidate of candidates) {
|
||||
if (candidate.left < padding || candidate.top < padding
|
||||
|| candidate.left + width > viewportWidth - padding
|
||||
|| candidate.top + height > viewportHeight - padding) continue;
|
||||
const rect = paddedRect(candidate.left, candidate.top, width, height);
|
||||
if (overlapsOccupied(rect)) continue;
|
||||
if (!iconOverlapFallback) iconOverlapFallback = { ...candidate, rect };
|
||||
if (iconRects.some((iconRect) => rectsOverlap(rect, iconRect))) continue;
|
||||
chosen = { ...candidate, rect };
|
||||
break;
|
||||
}
|
||||
chosen ??= iconOverlapFallback;
|
||||
if (!chosen) {
|
||||
label.classList.add('poi-label-hidden');
|
||||
continue;
|
||||
}
|
||||
|
||||
addOccupied(chosen.rect);
|
||||
const markerLeft = point.x - size / 2;
|
||||
const markerTop = point.y - size / 2;
|
||||
label.style.left = `${chosen.left - markerLeft}px`;
|
||||
label.style.top = `${chosen.top - markerTop}px`;
|
||||
label.style.transform = 'none';
|
||||
|
||||
const targetX = Math.max(chosen.left, Math.min(point.x, chosen.left + width));
|
||||
const targetY = Math.max(chosen.top, Math.min(point.y, chosen.top + height));
|
||||
const dx = targetX - point.x;
|
||||
const dy = targetY - point.y;
|
||||
const distance = Math.hypot(dx, dy);
|
||||
const startDistance = radius + 3;
|
||||
const lineLength = Math.max(0, distance - startDistance);
|
||||
if (chosen.displaced && lineLength > 4) {
|
||||
const ux = dx / distance;
|
||||
const uy = dy / distance;
|
||||
leader.style.display = 'block';
|
||||
leader.style.left = `${size / 2 + ux * startDistance}px`;
|
||||
leader.style.top = `${size / 2 + uy * startDistance}px`;
|
||||
leader.style.width = `${lineLength}px`;
|
||||
leader.style.transform = `rotate(${Math.atan2(dy, dx)}rad)`;
|
||||
}
|
||||
}
|
||||
};
|
||||
const scheduleMarkerLabelLayout = () => {
|
||||
if (markerLabelLayoutFrame !== null) return;
|
||||
markerLabelLayoutFrame = requestAnimationFrame(() => {
|
||||
markerLabelLayoutFrame = null;
|
||||
layoutMarkerLabels();
|
||||
});
|
||||
};
|
||||
const refreshMarkerCounts = () => {
|
||||
for (const [category, node] of categoryCountNodes) {
|
||||
const settings = categoryConfig(category);
|
||||
node.textContent = `${settings.label ?? category} (${markerCounts.get(category) ?? 0})`;
|
||||
}
|
||||
const button = document.getElementById('toggle-markers');
|
||||
if (button) button.textContent = `Markers (${markerRecords.size})`;
|
||||
};
|
||||
const replaceMarkerRecord = (record) => {
|
||||
removeIndexedMarker(record.id);
|
||||
const indexed = indexMarker(record);
|
||||
if (!loadedMarkerMaps.has(record.mapId)) loadedMarkerMaps.set(record.mapId, new Set());
|
||||
loadedMarkerMaps.get(record.mapId).add(record.id);
|
||||
refreshMarkerCounts();
|
||||
scheduleMarkerRefresh();
|
||||
return indexed;
|
||||
};
|
||||
let markersVisible = localStorage.getItem('tarkov-markers-visible') !== 'false';
|
||||
const refreshMarkers = () => {
|
||||
markerRefreshFrame = null;
|
||||
try {
|
||||
if (!markersVisible) return;
|
||||
const bounds = map.getBounds().pad(Number(markerDefaults.viewportPadding) || 0.15);
|
||||
const x0 = Math.floor(bounds.getWest() / gridSize);
|
||||
const x1 = Math.floor(bounds.getEast() / gridSize);
|
||||
const y0 = Math.floor(bounds.getSouth() / gridSize);
|
||||
const y1 = Math.floor(bounds.getNorth() / gridSize);
|
||||
const mapIds = focusedMarkerIds.length ? focusedMarkerIds : [...markerIndex.keys()];
|
||||
const desired = new Map();
|
||||
for (const mapId of mapIds) {
|
||||
const cells = markerIndex.get(mapId);
|
||||
if (!cells) continue;
|
||||
for (let gy = y0; gy <= y1; gy += 1) {
|
||||
for (let gx = x0; gx <= x1; gx += 1) {
|
||||
for (const record of cells.get(`${gx},${gy}`) ?? []) {
|
||||
if (categoryVisible.get(record.category) === false) continue;
|
||||
if (bounds.contains([record.worldY, record.worldX])) desired.set(record.id, record);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const [id, leafletMarker] of renderedMarkers) {
|
||||
if (desired.has(id)) continue;
|
||||
markerLayer.removeLayer(leafletMarker);
|
||||
renderedMarkers.delete(id);
|
||||
}
|
||||
for (const [id, record] of desired) {
|
||||
if (renderedMarkers.has(id)) continue;
|
||||
const leafletMarker = createMarker(record);
|
||||
renderedMarkers.set(id, leafletMarker);
|
||||
markerLayer.addLayer(leafletMarker);
|
||||
if (!markerEditing.active) leafletMarker.dragging?.disable();
|
||||
}
|
||||
scheduleMarkerLabelLayout();
|
||||
} catch (error) {
|
||||
document.getElementById('toggle-markers').title = `Marker rendering failed: ${error.message}`;
|
||||
throw error;
|
||||
}
|
||||
};
|
||||
const scheduleMarkerRefresh = () => {
|
||||
if (markerRefreshFrame !== null) return;
|
||||
markerRefreshFrame = requestAnimationFrame(refreshMarkers);
|
||||
};
|
||||
updateMarkerFocus = (mapIds) => {
|
||||
focusedMarkerIds = mapIds;
|
||||
activeMarkerMapIds = new Set(mapIds);
|
||||
for (const [mapId, markerIds] of loadedMarkerMaps) {
|
||||
if (activeMarkerMapIds.has(mapId)) continue;
|
||||
for (const markerId of markerIds) removeIndexedMarker(markerId);
|
||||
loadedMarkerMaps.delete(mapId);
|
||||
}
|
||||
refreshMarkerCounts();
|
||||
scheduleMarkerRefresh();
|
||||
Promise.all(mapIds.map(async (mapId) => ({ mapId, markers: await fetchMarkerMap(mapId) })))
|
||||
.then((results) => {
|
||||
for (const { mapId, markers } of results) {
|
||||
if (!activeMarkerMapIds.has(mapId) || loadedMarkerMaps.has(mapId)) continue;
|
||||
const markerIds = new Set();
|
||||
for (const marker of markers) {
|
||||
const indexed = indexMarker(marker);
|
||||
if (indexed) markerIds.add(indexed.id);
|
||||
}
|
||||
loadedMarkerMaps.set(mapId, markerIds);
|
||||
}
|
||||
refreshMarkerCounts();
|
||||
scheduleMarkerRefresh();
|
||||
})
|
||||
.catch((error) => {
|
||||
markerButton.title = `Marker loading failed: ${error.message}`;
|
||||
console.error(error);
|
||||
});
|
||||
};
|
||||
|
||||
const markerButton = document.getElementById('toggle-markers');
|
||||
let markersVisible = localStorage.getItem('tarkov-markers-visible') !== 'false';
|
||||
const renderMarkerVisibility = () => {
|
||||
if (markersVisible && !map.hasLayer(markerLayer)) markerLayer.addTo(map);
|
||||
if (!markersVisible && map.hasLayer(markerLayer)) map.removeLayer(markerLayer);
|
||||
if (!markersVisible && map.hasLayer(markerLayer)) {
|
||||
map.removeLayer(markerLayer);
|
||||
renderedMarkers.clear();
|
||||
markerLayer.clearLayers();
|
||||
}
|
||||
markerButton.setAttribute('aria-pressed', String(markersVisible));
|
||||
markerButton.textContent = `Markers (${markerData.markers?.length ?? 0})`;
|
||||
markerButton.textContent = `Markers (${markerRecords.size})`;
|
||||
if (markersVisible) scheduleMarkerRefresh();
|
||||
};
|
||||
markerButton.addEventListener('click', () => {
|
||||
markersVisible = !markersVisible;
|
||||
@@ -385,11 +799,61 @@ async function main() {
|
||||
});
|
||||
renderMarkerVisibility();
|
||||
|
||||
const categoryContainer = document.getElementById('marker-categories');
|
||||
const groups = markerConfig.groups?.length
|
||||
? markerConfig.groups : [{ id: 'markers', label: 'Markers' }];
|
||||
for (const group of groups) {
|
||||
const categories = [...allCategories].filter((category) => (
|
||||
(categoryConfig(category).group ?? 'markers') === group.id
|
||||
));
|
||||
if (!categories.length) continue;
|
||||
const fieldset = document.createElement('fieldset');
|
||||
const legend = document.createElement('legend');
|
||||
legend.textContent = group.label;
|
||||
fieldset.appendChild(legend);
|
||||
for (const category of categories) {
|
||||
const settings = categoryConfig(category);
|
||||
const label = document.createElement('label');
|
||||
const checkbox = document.createElement('input');
|
||||
checkbox.type = 'checkbox';
|
||||
checkbox.dataset.category = category;
|
||||
checkbox.checked = categoryVisible.get(category) !== false;
|
||||
checkbox.addEventListener('change', () => {
|
||||
categoryVisible.set(category, checkbox.checked);
|
||||
localStorage.setItem(categoryStorageKey(category), String(checkbox.checked));
|
||||
scheduleMarkerRefresh();
|
||||
});
|
||||
const swatch = document.createElement('span');
|
||||
swatch.className = 'marker-category-swatch';
|
||||
swatch.style.background = safeColor(settings.color);
|
||||
swatch.textContent = settings.symbol ?? '•';
|
||||
const text = document.createElement('span');
|
||||
text.textContent = `${settings.label ?? category} (${markerCounts.get(category) ?? 0})`;
|
||||
categoryCountNodes.set(category, text);
|
||||
label.append(checkbox, swatch, text);
|
||||
fieldset.appendChild(label);
|
||||
}
|
||||
categoryContainer.appendChild(fieldset);
|
||||
}
|
||||
|
||||
const updateMarkerDensity = () => {
|
||||
map.getContainer().classList.toggle('marker-labels-visible', map.getZoom() >= 6);
|
||||
map.getContainer().classList.toggle(
|
||||
'marker-labels-visible', map.getZoom() >= (Number(markerDefaults.labelMinZoom) || 6),
|
||||
);
|
||||
map.getContainer().classList.toggle(
|
||||
'marker-extract-labels-visible',
|
||||
map.getZoom() >= (Number(markerDefaults.extractLabelMinZoom) || 2),
|
||||
);
|
||||
map.getContainer().classList.toggle('marker-overview', map.getZoom() < 2.5);
|
||||
};
|
||||
map.on('zoom zoomend', updateMarkerDensity);
|
||||
map.on('zoom', updateMarkerDensity);
|
||||
map.on('moveend zoomend resize', scheduleMarkerRefresh);
|
||||
document.getElementById('panel')?.addEventListener('toggle', scheduleMarkerLabelLayout);
|
||||
document.getElementById('marker-settings')?.addEventListener('toggle', scheduleMarkerLabelLayout);
|
||||
if ('ResizeObserver' in window) {
|
||||
const markerPanelObserver = new ResizeObserver(scheduleMarkerLabelLayout);
|
||||
markerPanelObserver.observe(document.getElementById('panel'));
|
||||
}
|
||||
updateMarkerDensity();
|
||||
|
||||
// --- picker -----------------------------------------------------------
|
||||
@@ -415,6 +879,18 @@ async function main() {
|
||||
const trimClear = document.getElementById('trim-clear');
|
||||
const trimSave = document.getElementById('trim-save');
|
||||
const trimStatus = document.getElementById('trim-status');
|
||||
const markerEditButton = document.getElementById('edit-markers');
|
||||
const markerEditorPanel = document.getElementById('marker-editor');
|
||||
const markerEditorName = document.getElementById('marker-editor-name');
|
||||
const markerDropButton = document.getElementById('marker-drop');
|
||||
const markerFields = document.getElementById('marker-fields');
|
||||
const markerLabelInput = document.getElementById('marker-label');
|
||||
const markerCategoryInput = document.getElementById('marker-category');
|
||||
const markerMapName = document.getElementById('marker-map-name');
|
||||
const markerDeleteButton = document.getElementById('marker-delete');
|
||||
const markerCancelButton = document.getElementById('marker-cancel');
|
||||
const markerSaveButton = document.getElementById('marker-save');
|
||||
const markerEditStatus = document.getElementById('marker-edit-status');
|
||||
const byId = new Map(world.maps.map((m) => [m.id, m]));
|
||||
const editor = {
|
||||
selectedId: null,
|
||||
@@ -431,6 +907,231 @@ async function main() {
|
||||
outline: null,
|
||||
};
|
||||
|
||||
const editorCategories = [...allCategories].sort((a, b) => {
|
||||
const groupOrder = new Map(groups.map((group, index) => [group.id, index]));
|
||||
const aSettings = categoryConfig(a);
|
||||
const bSettings = categoryConfig(b);
|
||||
return (groupOrder.get(aSettings.group) ?? 999) - (groupOrder.get(bSettings.group) ?? 999)
|
||||
|| String(aSettings.label ?? a).localeCompare(String(bSettings.label ?? b));
|
||||
});
|
||||
for (const category of editorCategories) {
|
||||
const option = document.createElement('option');
|
||||
option.value = category;
|
||||
option.textContent = categoryConfig(category).label ?? category;
|
||||
markerCategoryInput.appendChild(option);
|
||||
}
|
||||
|
||||
const showMarkerStatus = (message, isError = false) => {
|
||||
markerEditStatus.textContent = message;
|
||||
markerEditStatus.dataset.error = String(isError);
|
||||
};
|
||||
|
||||
const setMarkerDropping = (dropping) => {
|
||||
markerEditing.dropping = dropping;
|
||||
markerDropButton.setAttribute('aria-pressed', String(dropping));
|
||||
markerDropButton.textContent = dropping ? 'Cancel drop' : 'Drop new marker';
|
||||
map.getContainer().classList.toggle('marker-dropping', dropping);
|
||||
};
|
||||
|
||||
const clearMarkerDraft = () => {
|
||||
if (markerEditing.draftMarker) map.removeLayer(markerEditing.draftMarker);
|
||||
markerEditing.draft = null;
|
||||
markerEditing.draftMarker = null;
|
||||
};
|
||||
|
||||
const clearMarkerSelection = () => {
|
||||
clearMarkerDraft();
|
||||
markerEditing.selectedMarkerId = null;
|
||||
markerFields.hidden = true;
|
||||
markerDeleteButton.hidden = true;
|
||||
markerLabelInput.value = '';
|
||||
setMarkerDropping(false);
|
||||
};
|
||||
|
||||
const showMarkerFields = (record, isNew = false) => {
|
||||
markerFields.hidden = false;
|
||||
markerLabelInput.value = record.label ?? '';
|
||||
markerCategoryInput.value = editorCategories.includes(record.category)
|
||||
? record.category : (editorCategories[0] ?? 'poi');
|
||||
markerMapName.textContent = `${isNew ? 'New marker on' : 'Map:'} ${record.mapName}`;
|
||||
markerDeleteButton.hidden = isNew;
|
||||
markerSaveButton.textContent = isNew ? 'Add marker' : 'Save marker';
|
||||
};
|
||||
|
||||
const persistMarker = async (record) => {
|
||||
const response = await fetch('api/marker', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
id: record.id?.startsWith('draft-') ? null : record.id,
|
||||
mapId: record.mapId,
|
||||
x: record.x,
|
||||
y: record.y,
|
||||
label: record.label,
|
||||
category: record.category,
|
||||
}),
|
||||
});
|
||||
const responseText = await response.text();
|
||||
let result;
|
||||
try { result = JSON.parse(responseText); } catch { result = {}; }
|
||||
if (!response.ok) throw new Error(
|
||||
result.error || 'This server is read-only; start it with server/run.ps1 -Editable',
|
||||
);
|
||||
return result.marker;
|
||||
};
|
||||
|
||||
selectEditableMarker = (id) => {
|
||||
if (!markerEditing.active) return;
|
||||
const record = markerRecords.get(id);
|
||||
if (!record) return;
|
||||
clearMarkerDraft();
|
||||
setMarkerDropping(false);
|
||||
markerEditing.selectedMarkerId = id;
|
||||
showMarkerFields(record);
|
||||
showMarkerStatus('Rename it, choose a category, or drag it to move it.');
|
||||
};
|
||||
|
||||
saveDraggedMarker = async (id, leafletMarker) => {
|
||||
const record = markerRecords.get(id);
|
||||
const m = record && byId.get(record.mapId);
|
||||
const point = m && normalizedPoint(m, leafletMarker.getLatLng());
|
||||
if (!record || !m || !point) {
|
||||
if (record) leafletMarker.setLatLng([record.worldY, record.worldX]);
|
||||
showMarkerStatus('Keep the marker inside its source map.', true);
|
||||
return;
|
||||
}
|
||||
leafletMarker.dragging.disable();
|
||||
showMarkerStatus('Saving the new marker position…');
|
||||
try {
|
||||
const saved = await persistMarker({ ...record, x: point[0], y: point[1] });
|
||||
replaceMarkerRecord(saved);
|
||||
selectEditableMarker(saved.id);
|
||||
showMarkerStatus('Marker position saved.');
|
||||
} catch (error) {
|
||||
leafletMarker.setLatLng([record.worldY, record.worldX]);
|
||||
leafletMarker.dragging.enable();
|
||||
showMarkerStatus(`Save failed: ${error.message}`, true);
|
||||
}
|
||||
};
|
||||
|
||||
function closeMarkerEditor() {
|
||||
clearMarkerSelection();
|
||||
markerEditing.active = false;
|
||||
markerEditorPanel.hidden = true;
|
||||
markerEditButton.setAttribute('aria-pressed', 'false');
|
||||
map.getContainer().classList.remove('marker-editing', 'marker-dropping');
|
||||
for (const leafletMarker of renderedMarkers.values()) leafletMarker.dragging?.disable();
|
||||
showMarkerStatus('');
|
||||
}
|
||||
|
||||
function openMarkerEditor(m) {
|
||||
if (!m || m.base) return;
|
||||
if (editor.active) closeEditor();
|
||||
if (trimEditor.active) closeTrimEditor();
|
||||
markerEditing.selectedMapId = m.id;
|
||||
markerEditing.active = true;
|
||||
markerEditorPanel.hidden = false;
|
||||
markerEditButton.disabled = false;
|
||||
markerEditButton.setAttribute('aria-pressed', 'true');
|
||||
markerEditorName.textContent = `${m.name} markers`;
|
||||
if (!markersVisible) {
|
||||
markersVisible = true;
|
||||
localStorage.setItem('tarkov-markers-visible', 'true');
|
||||
renderMarkerVisibility();
|
||||
}
|
||||
map.getContainer().classList.add('marker-editing');
|
||||
scheduleMarkerRefresh();
|
||||
requestAnimationFrame(() => {
|
||||
for (const leafletMarker of renderedMarkers.values()) leafletMarker.dragging?.enable();
|
||||
});
|
||||
showMarkerStatus('Click a marker to edit it, or drop a new one.');
|
||||
focus(m.id);
|
||||
}
|
||||
|
||||
markerDropButton.addEventListener('click', () => {
|
||||
if (markerEditing.dropping) {
|
||||
setMarkerDropping(false);
|
||||
showMarkerStatus('Drop cancelled.');
|
||||
return;
|
||||
}
|
||||
clearMarkerSelection();
|
||||
setMarkerDropping(true);
|
||||
showMarkerStatus('Click inside the selected map to place a new marker.');
|
||||
});
|
||||
|
||||
markerCancelButton.addEventListener('click', () => {
|
||||
clearMarkerSelection();
|
||||
showMarkerStatus('Selection cleared.');
|
||||
});
|
||||
|
||||
markerDeleteButton.addEventListener('click', async () => {
|
||||
const record = markerRecords.get(markerEditing.selectedMarkerId);
|
||||
if (!record || !window.confirm(`Delete “${record.label}”? The default backup is unchanged.`)) {
|
||||
return;
|
||||
}
|
||||
markerDeleteButton.disabled = true;
|
||||
markerSaveButton.disabled = true;
|
||||
showMarkerStatus('Deleting marker…');
|
||||
try {
|
||||
const response = await fetch('api/marker', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ action: 'delete', id: record.id, mapId: record.mapId }),
|
||||
});
|
||||
const responseText = await response.text();
|
||||
let result;
|
||||
try { result = JSON.parse(responseText); } catch { result = {}; }
|
||||
if (!response.ok) throw new Error(
|
||||
result.error || 'This server is read-only; start it with server/run.ps1 -Editable',
|
||||
);
|
||||
removeIndexedMarker(record.id);
|
||||
loadedMarkerMaps.get(record.mapId)?.delete(record.id);
|
||||
refreshMarkerCounts();
|
||||
scheduleMarkerRefresh();
|
||||
clearMarkerSelection();
|
||||
showMarkerStatus('Marker deleted. The read-only default remains available for restoration.');
|
||||
} catch (error) {
|
||||
showMarkerStatus(`Delete failed: ${error.message}`, true);
|
||||
} finally {
|
||||
markerDeleteButton.disabled = false;
|
||||
markerSaveButton.disabled = false;
|
||||
}
|
||||
});
|
||||
|
||||
markerCategoryInput.addEventListener('change', () => {
|
||||
if (!markerEditing.draft || !markerEditing.draftMarker) return;
|
||||
markerEditing.draft.category = markerCategoryInput.value;
|
||||
markerEditing.draftMarker.setIcon(createMarkerIcon(markerEditing.draft));
|
||||
});
|
||||
|
||||
markerSaveButton.addEventListener('click', async () => {
|
||||
const current = markerEditing.draft
|
||||
?? markerRecords.get(markerEditing.selectedMarkerId);
|
||||
const label = markerLabelInput.value.trim();
|
||||
if (!current || !label) {
|
||||
showMarkerStatus('Enter a marker name before saving.', true);
|
||||
markerLabelInput.focus();
|
||||
return;
|
||||
}
|
||||
markerSaveButton.disabled = true;
|
||||
showMarkerStatus('Saving marker…');
|
||||
try {
|
||||
const saved = await persistMarker({
|
||||
...current,
|
||||
label,
|
||||
category: markerCategoryInput.value,
|
||||
});
|
||||
clearMarkerDraft();
|
||||
replaceMarkerRecord(saved);
|
||||
selectEditableMarker(saved.id);
|
||||
showMarkerStatus('Marker saved.');
|
||||
} catch (error) {
|
||||
showMarkerStatus(`Save failed: ${error.message}`, true);
|
||||
} finally {
|
||||
markerSaveButton.disabled = false;
|
||||
}
|
||||
});
|
||||
|
||||
const showStatus = (message, isError = false) => {
|
||||
status.textContent = message;
|
||||
status.dataset.error = String(isError);
|
||||
@@ -480,6 +1181,7 @@ async function main() {
|
||||
const openEditor = (m) => {
|
||||
if (!m || m.base) return;
|
||||
if (trimEditor.active) closeTrimEditor();
|
||||
if (markerEditing.active) closeMarkerEditor();
|
||||
const previous = byId.get(editor.selectedId);
|
||||
if (previous && previous.id !== m.id) {
|
||||
resetPreview(previous);
|
||||
@@ -521,16 +1223,21 @@ async function main() {
|
||||
};
|
||||
|
||||
const selectTarget = (m) => {
|
||||
const mode = editor.active ? 'placement' : (trimEditor.active ? 'trim' : null);
|
||||
const mode = editor.active ? 'placement'
|
||||
: (trimEditor.active ? 'trim' : (markerEditing.active ? 'markers' : null));
|
||||
if (editor.active) closeEditor();
|
||||
if (trimEditor.active) closeTrimEditor();
|
||||
if (markerEditing.active) closeMarkerEditor();
|
||||
editor.selectedId = m.base ? null : m.id;
|
||||
trimEditor.selectedId = m.base ? null : m.id;
|
||||
markerEditing.selectedMapId = m.base ? null : m.id;
|
||||
editButton.disabled = !!m.base;
|
||||
trimButton.disabled = !!m.base;
|
||||
markerEditButton.disabled = !!m.base;
|
||||
buttons.forEach((b) => { b.dataset.selected = String(b.dataset.id === m.id); });
|
||||
if (!m.base && mode === 'placement') openEditor(m);
|
||||
if (!m.base && mode === 'trim') openTrimEditor(m);
|
||||
if (!m.base && mode === 'markers') openMarkerEditor(m);
|
||||
};
|
||||
|
||||
const roots = detail.filter((m) => !m.parent);
|
||||
@@ -559,6 +1266,7 @@ async function main() {
|
||||
|
||||
editButton.setAttribute('aria-pressed', 'false');
|
||||
trimButton.setAttribute('aria-pressed', 'false');
|
||||
markerEditButton.setAttribute('aria-pressed', 'false');
|
||||
editButton.addEventListener('click', () => {
|
||||
if (editor.active) closeEditor();
|
||||
else openEditor(byId.get(editor.selectedId));
|
||||
@@ -567,6 +1275,10 @@ async function main() {
|
||||
if (trimEditor.active) closeTrimEditor();
|
||||
else openTrimEditor(byId.get(trimEditor.selectedId));
|
||||
});
|
||||
markerEditButton.addEventListener('click', () => {
|
||||
if (markerEditing.active) closeMarkerEditor();
|
||||
else openMarkerEditor(byId.get(markerEditing.selectedMapId));
|
||||
});
|
||||
|
||||
const applyInputs = () => {
|
||||
const m = byId.get(editor.selectedId);
|
||||
@@ -721,6 +1433,7 @@ async function main() {
|
||||
function openTrimEditor(m) {
|
||||
if (!m || m.base) return;
|
||||
if (editor.active) closeEditor();
|
||||
if (markerEditing.active) closeMarkerEditor();
|
||||
clearTrimEditorLayers();
|
||||
const saved = savedTrim(m);
|
||||
trimEditor.selectedId = m.id;
|
||||
@@ -798,6 +1511,52 @@ async function main() {
|
||||
});
|
||||
|
||||
map.on('click', (event) => {
|
||||
if (markerEditing.active && markerEditing.dropping) {
|
||||
const m = byId.get(markerEditing.selectedMapId);
|
||||
const point = m && normalizedPoint(m, event.latlng);
|
||||
if (!m || !point) {
|
||||
showMarkerStatus('Click inside the selected map to place the marker.', true);
|
||||
return;
|
||||
}
|
||||
clearMarkerDraft();
|
||||
setMarkerDropping(false);
|
||||
const category = editorCategories.includes('poi') ? 'poi' : editorCategories[0];
|
||||
markerEditing.draft = {
|
||||
id: `draft-${Date.now()}`,
|
||||
mapId: m.id,
|
||||
mapName: m.name,
|
||||
x: point[0],
|
||||
y: point[1],
|
||||
category,
|
||||
label: 'New marker',
|
||||
source: 'User marker',
|
||||
};
|
||||
markerEditing.draftMarker = L.marker(event.latlng, {
|
||||
icon: createMarkerIcon(markerEditing.draft),
|
||||
pane: 'semantic-markers',
|
||||
draggable: true,
|
||||
keyboard: false,
|
||||
zIndexOffset: 12000,
|
||||
}).addTo(map);
|
||||
markerEditing.draftMarker.on('dragend', (dragEvent) => {
|
||||
const next = normalizedPoint(m, dragEvent.target.getLatLng());
|
||||
if (!next) {
|
||||
dragEvent.target.setLatLng([
|
||||
m.origin[1] + markerEditing.draft.y * m.size[1],
|
||||
m.origin[0] + markerEditing.draft.x * m.size[0],
|
||||
]);
|
||||
showMarkerStatus('Keep the marker inside the selected map.', true);
|
||||
return;
|
||||
}
|
||||
markerEditing.draft.x = next[0];
|
||||
markerEditing.draft.y = next[1];
|
||||
showMarkerStatus('Position ready. Name and save the marker.');
|
||||
});
|
||||
showMarkerFields(markerEditing.draft, true);
|
||||
markerLabelInput.select();
|
||||
showMarkerStatus('Name the marker, choose a category, then save it.');
|
||||
return;
|
||||
}
|
||||
if (!trimEditor.active) return;
|
||||
const m = byId.get(trimEditor.selectedId);
|
||||
const point = m && normalizedPoint(m, event.latlng);
|
||||
@@ -824,7 +1583,9 @@ async function main() {
|
||||
.sort((a, b) => a.size[0] * a.size[1] - b.size[0] * b.size[1])[0];
|
||||
buttons.forEach((b) => b.setAttribute(
|
||||
'aria-current', String(hit ? hit.id === b.dataset.id : b.dataset.id === base.id)));
|
||||
focus(editor.active ? editor.selectedId : (trimEditor.active ? trimEditor.selectedId : hit?.id));
|
||||
focus(editor.active ? editor.selectedId
|
||||
: (trimEditor.active ? trimEditor.selectedId
|
||||
: (markerEditing.active ? markerEditing.selectedMapId : hit?.id)));
|
||||
|
||||
const z = Math.round(map.getZoom() * 4) / 4;
|
||||
history.replaceState(null, '', `#${z}/${Math.round(c.lat)}/${Math.round(c.lng)}`);
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"version": 2,
|
||||
"visibilityVersion": 2,
|
||||
"defaults": {
|
||||
"color": "#5d6876",
|
||||
"size": 18,
|
||||
"symbol": "•",
|
||||
"displayText": false,
|
||||
"defaultVisible": true,
|
||||
"labelMinZoom": 6,
|
||||
"extractLabelMinZoom": 2,
|
||||
"gridSize": 2048,
|
||||
"viewportPadding": 0.15
|
||||
},
|
||||
"groups": [
|
||||
{ "id": "extracts", "label": "Extracts & transit" },
|
||||
{ "id": "activity", "label": "Spawns & activity" },
|
||||
{ "id": "items", "label": "Items & objectives" },
|
||||
{ "id": "places", "label": "Places" }
|
||||
],
|
||||
"categories": {
|
||||
"extract-pmc": { "group": "extracts", "label": "PMC extracts", "color": "#20a66a", "size": 24, "symbol": "P", "displayText": true },
|
||||
"extract-scav": { "group": "extracts", "label": "Scav extracts", "color": "#e18a20", "size": 24, "symbol": "S", "displayText": true },
|
||||
"extract-neutral": { "group": "extracts", "label": "Shared / co-op extracts", "color": "#21a7b2", "size": 25, "symbol": "🤝", "displayText": true },
|
||||
"extract-hidden": { "group": "extracts", "label": "Hidden extracts", "color": "#8257b7", "size": 23, "symbol": "?", "displayText": true },
|
||||
"transit": { "group": "extracts", "label": "Transit", "color": "#3477d4", "size": 23, "symbol": "⇄", "displayText": true },
|
||||
"spawn": { "group": "activity", "label": "PMC spawns", "color": "#4f8ac7", "size": 16, "symbol": "P", "displayText": false, "defaultVisible": false },
|
||||
"scav": { "group": "activity", "label": "Scav areas", "color": "#c28135", "size": 17, "symbol": "S", "displayText": false, "defaultVisible": false },
|
||||
"boss": { "group": "activity", "label": "Boss areas", "color": "#bd3f45", "size": 20, "symbol": "👑", "displayText": true },
|
||||
"cultist": { "group": "activity", "label": "Cultist areas", "color": "#7552a0", "size": 18, "symbol": "☾", "displayText": true },
|
||||
"sniper": { "group": "activity", "label": "Snipers", "color": "#b43c3c", "size": 18, "symbol": "△", "displayText": false },
|
||||
"hazard": { "group": "activity", "label": "Hazards", "color": "#b43c3c", "size": 19, "symbol": "⚠️", "displayText": true },
|
||||
"cache": { "group": "items", "label": "Caches", "color": "#8a7140", "size": 15, "symbol": "◇", "displayText": false, "defaultVisible": false },
|
||||
"key": { "group": "items", "label": "Keys", "color": "#9a7830", "size": 17, "symbol": "🔑", "displayText": false, "defaultVisible": false },
|
||||
"loot": { "group": "items", "label": "Loot", "color": "#8a7140", "size": 16, "symbol": "📦", "displayText": false, "defaultVisible": false },
|
||||
"quest": { "group": "items", "label": "Quest objectives", "color": "#9a7830", "size": 18, "symbol": "?", "displayText": true },
|
||||
"location": { "group": "places", "label": "Location names", "color": "#5d6876", "size": 14, "symbol": "•", "displayText": true, "defaultVisible": false },
|
||||
"poi": { "group": "places", "label": "Points of interest", "color": "#5d6876", "size": 14, "symbol": "•", "displayText": false, "defaultVisible": false }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"version": 2,
|
||||
"mapId": "customs-dorms",
|
||||
"markers": [
|
||||
{
|
||||
"x": 0.49686119507091375,
|
||||
"y": 0.3038336052202284,
|
||||
"category": "hazard",
|
||||
"label": "Hazard",
|
||||
"source": "OVERLAY/DeadScav copy",
|
||||
"id": "customs-dorms-9c628ce7d822",
|
||||
"mapId": "customs-dorms"
|
||||
},
|
||||
{
|
||||
"x": 0.655196465938154,
|
||||
"y": 0.7807911908646004,
|
||||
"category": "hazard",
|
||||
"label": "Hazard",
|
||||
"source": "OVERLAY/DeadScav copy 2",
|
||||
"id": "customs-dorms-c1078856cd67",
|
||||
"mapId": "customs-dorms"
|
||||
},
|
||||
{
|
||||
"x": 0.6384561729830271,
|
||||
"y": 0.7807911908646004,
|
||||
"category": "key",
|
||||
"label": "Key",
|
||||
"source": "OVERLAY/Keys/Layer 24",
|
||||
"id": "customs-dorms-1a53c38ea694",
|
||||
"mapId": "customs-dorms"
|
||||
},
|
||||
{
|
||||
"x": 0.49686119507091375,
|
||||
"y": 0.1871941272430669,
|
||||
"category": "key",
|
||||
"label": "Key",
|
||||
"source": "OVERLAY/Keys/Layer 19",
|
||||
"id": "customs-dorms-41c3af44bd63",
|
||||
"mapId": "customs-dorms"
|
||||
},
|
||||
{
|
||||
"x": 0.19111834457103,
|
||||
"y": 0.21737357259380097,
|
||||
"category": "key",
|
||||
"label": "Key",
|
||||
"source": "OVERLAY/Keys/Layer 25",
|
||||
"id": "customs-dorms-5c75afd21764",
|
||||
"mapId": "customs-dorms"
|
||||
},
|
||||
{
|
||||
"x": 0.7425017437805161,
|
||||
"y": 0.6988172920065252,
|
||||
"category": "key",
|
||||
"label": "Key",
|
||||
"source": "OVERLAY/Keys/Layer 22",
|
||||
"id": "customs-dorms-6ce6bd2e3821",
|
||||
"mapId": "customs-dorms"
|
||||
},
|
||||
{
|
||||
"x": 0.5087189025807952,
|
||||
"y": 0.4530995106035889,
|
||||
"category": "key",
|
||||
"label": "Key",
|
||||
"source": "OVERLAY/Keys/Layer 20",
|
||||
"id": "customs-dorms-710518821270",
|
||||
"mapId": "customs-dorms"
|
||||
},
|
||||
{
|
||||
"x": 0.40827714485003486,
|
||||
"y": 0.3974306688417618,
|
||||
"category": "key",
|
||||
"label": "Key",
|
||||
"source": "OVERLAY/Keys/Layer 18",
|
||||
"id": "customs-dorms-8074a795e78d",
|
||||
"mapId": "customs-dorms"
|
||||
},
|
||||
{
|
||||
"x": 0.6212508718902581,
|
||||
"y": 0.48022022838499184,
|
||||
"category": "key",
|
||||
"label": "Key",
|
||||
"source": "OVERLAY/Keys/Layer 21",
|
||||
"id": "customs-dorms-c9942bd86cba",
|
||||
"mapId": "customs-dorms"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,825 @@
|
||||
{
|
||||
"version": 2,
|
||||
"mapId": "customs",
|
||||
"markers": [
|
||||
{
|
||||
"x": 0.5776302349336058,
|
||||
"y": 0.37296849087893863,
|
||||
"category": "boss",
|
||||
"label": "Boss area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Boss/boss copy 5",
|
||||
"id": "customs-3e71836a04f6",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.2861338100102145,
|
||||
"y": 0.6472636815920398,
|
||||
"category": "boss",
|
||||
"label": "Boss area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Boss/boss copy",
|
||||
"id": "customs-5245477221dd",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.4753575076608784,
|
||||
"y": 0.3560530679933665,
|
||||
"category": "boss",
|
||||
"label": "Boss area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Boss/boss copy 3",
|
||||
"id": "customs-608f6170a182",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.19164964249233912,
|
||||
"y": 0.7434494195688226,
|
||||
"category": "boss",
|
||||
"label": "Boss area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Boss/boss copy 2",
|
||||
"id": "customs-78de3a0ef61d",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.47305924412665984,
|
||||
"y": 0.8396351575456054,
|
||||
"category": "boss",
|
||||
"label": "Boss area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Boss/boss copy 4",
|
||||
"id": "customs-8ca0db62acd9",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.2237614913176711,
|
||||
"y": 0.30016583747927034,
|
||||
"category": "extract-hidden",
|
||||
"label": "SMUGGLERS BUNKER",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Hidden/SMUGGLERS BUNKER",
|
||||
"id": "customs-a79111915293",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.6893513789581205,
|
||||
"y": 0.842620232172471,
|
||||
"category": "extract-hidden",
|
||||
"label": "SMUGGLERS BOAT",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Hidden/SMUGGLERS BOAT",
|
||||
"id": "customs-cb6d3a8c0e20",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.5628192032686414,
|
||||
"y": 0.266334991708126,
|
||||
"category": "extract-neutral",
|
||||
"label": "BOILER ROOM BASEMENT (CO-OP)",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/PMC&Scav/BOILER ROOM BASEMENT (CO-OP)",
|
||||
"id": "customs-24bcffb797af",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.6689223697650664,
|
||||
"y": 0.3066334991708126,
|
||||
"category": "extract-neutral",
|
||||
"label": "RUAF ROADBLOCK",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/PMC&Scav/RUAF ROADBLOCK",
|
||||
"id": "customs-5e818d53cf72",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.9712078651685393,
|
||||
"y": 0.45787728026533997,
|
||||
"category": "extract-neutral",
|
||||
"label": "CROSSROADS",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/PMC&Scav/CROSSROADS",
|
||||
"id": "customs-e58572932cd1",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.48525280898876405,
|
||||
"y": 0.07893864013266998,
|
||||
"category": "extract-pmc",
|
||||
"label": "RAILROAD PASSAGE",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/PMC/RAILROAD PASSAGE",
|
||||
"id": "customs-45645fbc9a13",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.5159601634320735,
|
||||
"y": 0.9746268656716418,
|
||||
"category": "extract-pmc",
|
||||
"label": "DORMS V-EX",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/PMC/DORMS V-EX",
|
||||
"id": "customs-974c30721c45",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.5126404494382022,
|
||||
"y": 0.18739635157545606,
|
||||
"category": "extract-pmc",
|
||||
"label": "ZB-1013",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/PMC/ZB-1013",
|
||||
"id": "customs-f1d7ba416c1b",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.03887895812053115,
|
||||
"y": 0.5296849087893865,
|
||||
"category": "extract-scav",
|
||||
"label": "SCAV CHECKPOINT",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Scav/SCAV CHECKPOINT",
|
||||
"id": "customs-170876e48cfd",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.7920071501532175,
|
||||
"y": 0.6754560530679934,
|
||||
"category": "extract-scav",
|
||||
"label": "RAILROAD TO PORT",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Scav/RAILROAD TO PORT",
|
||||
"id": "customs-1759720e23e5",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.3187563840653728,
|
||||
"y": 0.3227197346600332,
|
||||
"category": "extract-scav",
|
||||
"label": "WAREHOUSE 4",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Scav/WAREHOUSE 4",
|
||||
"id": "customs-1e7f22e59724",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.4768258426966292,
|
||||
"y": 0.9693200663349917,
|
||||
"category": "extract-scav",
|
||||
"label": "OLD ROAD GATE",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Scav/OLD ROAD GATE",
|
||||
"id": "customs-1fc844d6bf70",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.630426455566905,
|
||||
"y": 0.3351575456053068,
|
||||
"category": "extract-scav",
|
||||
"label": "WAREHOUSE 17",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Scav/WAREHOUSE 17",
|
||||
"id": "customs-30abdbf9fcc0",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.6244254341164454,
|
||||
"y": 0.8477611940298507,
|
||||
"category": "extract-scav",
|
||||
"label": "SNIPER ROADBLOCK",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Scav/SNIPER ROADBLOCK",
|
||||
"id": "customs-39b950d47e30",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.02643003064351379,
|
||||
"y": 0.4761194029850746,
|
||||
"category": "extract-scav",
|
||||
"label": "ADMIN GATE",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Scav/ADMIN GATE",
|
||||
"id": "customs-6b4027570254",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.16707099080694587,
|
||||
"y": 0.9339966832504146,
|
||||
"category": "extract-scav",
|
||||
"label": "PASSAGE BETWEEN ROCKS",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Scav/PASSAGE BETWEEN ROCKS",
|
||||
"id": "customs-72601281e471",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.19350102145045966,
|
||||
"y": 0.9718076285240465,
|
||||
"category": "extract-scav",
|
||||
"label": "RAILROAD TO MILITARY BASE",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Scav/RAILROAD TO MILITARY BASE",
|
||||
"id": "customs-89a4ec29801d",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.5308350357507661,
|
||||
"y": 0.27296849087893865,
|
||||
"category": "extract-scav",
|
||||
"label": "FACTORY SHACKS",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Scav/FACTORY SHACKS",
|
||||
"id": "customs-c1bb6a3d059d",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.8912793667007151,
|
||||
"y": 0.15041459369817578,
|
||||
"category": "extract-scav",
|
||||
"label": "TRAILER PARK WORKERS\u2019 SHACK",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Scav/TRAILER PARK WORKERS\u2019 SHACK",
|
||||
"id": "customs-c53ab9f6870b",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.7996680286006129,
|
||||
"y": 0.17761194029850746,
|
||||
"category": "extract-scav",
|
||||
"label": "RAILROAD TO TARKOV",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Scav/RAILROAD TO TARKOV",
|
||||
"id": "customs-ca0ece4b64a2",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.03804902962206333,
|
||||
"y": 0.3023217247097844,
|
||||
"category": "extract-scav",
|
||||
"label": "FACTORY FAR CORNER",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Scav/FACTORY FAR CORNER",
|
||||
"id": "customs-daf50bee7b38",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.0613508682328907,
|
||||
"y": 0.8207296849087894,
|
||||
"category": "extract-scav",
|
||||
"label": "MILITARY BASE CP",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Scav/MILITARY BASE CP",
|
||||
"id": "customs-f11ad4b62061",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.34378192032686417,
|
||||
"y": 0.44212271973466005,
|
||||
"category": "location",
|
||||
"label": "WH. 4",
|
||||
"source": "OVERLAYS/Overlay/Overlay_HouseNames/WH. 4",
|
||||
"id": "customs-35e41a72913c",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.6117849846782432,
|
||||
"y": 0.46102819237147596,
|
||||
"category": "location",
|
||||
"label": "WH. 17",
|
||||
"source": "OVERLAYS/Overlay/Overlay_HouseNames/WH. 17",
|
||||
"id": "customs-589f892ca3bb",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.4703140960163432,
|
||||
"y": 0.8165837479270315,
|
||||
"category": "location",
|
||||
"label": "DORMS",
|
||||
"source": "OVERLAYS/Overlay/Overlay_HouseNames/DORMS",
|
||||
"id": "customs-5b2a27ba0c04",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.8562946884576098,
|
||||
"y": 0.32371475953565504,
|
||||
"category": "location",
|
||||
"label": "RED (PARADIGM)",
|
||||
"source": "OVERLAYS/Overlay/Overlay_HouseNames/RED (PARADIGM)",
|
||||
"id": "customs-8164772cfa46",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.5556052093973443,
|
||||
"y": 0.4615257048092869,
|
||||
"category": "location",
|
||||
"label": "BOILER BUILDING",
|
||||
"source": "OVERLAYS/Overlay/Overlay_HouseNames/BOILER BUILDING",
|
||||
"id": "customs-819a982e6348",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.4022599591419816,
|
||||
"y": 0.48640132669983416,
|
||||
"category": "location",
|
||||
"label": "INDUSTRIAL PLANT",
|
||||
"source": "OVERLAYS/Overlay/Overlay_HouseNames/INDUSTRIAL PLANT",
|
||||
"id": "customs-97225b8ab49f",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.2838355464759959,
|
||||
"y": 0.4043117744610282,
|
||||
"category": "location",
|
||||
"label": "WH. 3",
|
||||
"source": "OVERLAYS/Overlay/Overlay_HouseNames/WH. 3",
|
||||
"id": "customs-b5d97deec7e8",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.14006639427987744,
|
||||
"y": 0.33665008291873966,
|
||||
"category": "location",
|
||||
"label": "WH. 7",
|
||||
"source": "OVERLAYS/Overlay/Overlay_HouseNames/WH. 7",
|
||||
"id": "customs-c75eb05c2981",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.12736210418794688,
|
||||
"y": 0.43449419568822556,
|
||||
"category": "location",
|
||||
"label": "WH. 6",
|
||||
"source": "OVERLAYS/Overlay/Overlay_HouseNames/WH. 6",
|
||||
"id": "customs-c9deeceddf20",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.21348314606741572,
|
||||
"y": 0.45804311774461026,
|
||||
"category": "location",
|
||||
"label": "WH. 5",
|
||||
"source": "OVERLAYS/Overlay/Overlay_HouseNames/WH. 5",
|
||||
"id": "customs-cbc72f382c2f",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.5821629213483146,
|
||||
"y": 0.3099502487562189,
|
||||
"category": "location",
|
||||
"label": "LAB",
|
||||
"source": "OVERLAYS/Overlay/Overlay_HouseNames/LAB",
|
||||
"id": "customs-d448f920c525",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.2754085801838611,
|
||||
"y": 0.6235489220563848,
|
||||
"category": "location",
|
||||
"label": "NEW GAS STATION",
|
||||
"source": "OVERLAYS/Overlay/Overlay_HouseNames/NEW GAS STATION",
|
||||
"id": "customs-f85c86279cf8",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.46527068437180796,
|
||||
"y": 0.3560530679933665,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Scav/scav copy 3",
|
||||
"id": "customs-00c0bfa76d69",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.4690372829417773,
|
||||
"y": 0.32470978441127696,
|
||||
"category": "scav",
|
||||
"label": "SCAV BASE",
|
||||
"source": "OVERLAYS/Overlay/Overlay_HouseNames/SCAV BASE",
|
||||
"id": "customs-1119bcb3da33",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.8711695607763024,
|
||||
"y": 0.20381426202321726,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Scav/scav copy 14",
|
||||
"id": "customs-192933a75491",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.9052604698672114,
|
||||
"y": 0.4462686567164179,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Scav/scav copy 7",
|
||||
"id": "customs-216002034820",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.6550051072522982,
|
||||
"y": 0.45787728026533997,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Scav/scav copy 5",
|
||||
"id": "customs-2d940285071f",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.650408580183861,
|
||||
"y": 0.6718076285240464,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Scav/scav copy 6",
|
||||
"id": "customs-34decc1b3782",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.10572012257405516,
|
||||
"y": 0.43399668325041457,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Scav/scav copy 11",
|
||||
"id": "customs-3572069945ef",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.34588866189989786,
|
||||
"y": 0.3099502487562189,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Scav/scav copy 13",
|
||||
"id": "customs-360cdc704753",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.5634576098059244,
|
||||
"y": 0.5895522388059702,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Scav/scav copy 2",
|
||||
"id": "customs-3f7f1ad3af1f",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.12857507660878448,
|
||||
"y": 0.5686567164179105,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Scav/scav copy 10",
|
||||
"id": "customs-58857a08f8de",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.5794177732379979,
|
||||
"y": 0.291044776119403,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Scav/scav copy 4",
|
||||
"id": "customs-76d2a05bbb8e",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.4339887640449438,
|
||||
"y": 0.6243781094527363,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Scav/scav copy",
|
||||
"id": "customs-a05993347d07",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.4656537282941777,
|
||||
"y": 0.8396351575456054,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Scav/scav",
|
||||
"id": "customs-abffd3311677",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.291879468845761,
|
||||
"y": 0.647927031509121,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Scav/scav copy 9",
|
||||
"id": "customs-c5c0867e4b56",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.25153217568947905,
|
||||
"y": 0.5291873963515754,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Scav/scav copy 12",
|
||||
"id": "customs-d0cf16afe14e",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.8292900919305414,
|
||||
"y": 0.4134328358208955,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Scav/scav copy 8",
|
||||
"id": "customs-eade4c5aed95",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.21552604698672115,
|
||||
"y": 0.4349917081260365,
|
||||
"category": "sniper",
|
||||
"label": "sniper scav",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Sniper/sniper scav copy 3",
|
||||
"id": "customs-0e13b089c414",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.4187946884576098,
|
||||
"y": 0.4412935323383085,
|
||||
"category": "sniper",
|
||||
"label": "sniper scav",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Sniper/sniper scav copy",
|
||||
"id": "customs-434494dac572",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.5542645556690501,
|
||||
"y": 0.4880597014925373,
|
||||
"category": "sniper",
|
||||
"label": "sniper scav",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Sniper/sniper scav copy 2",
|
||||
"id": "customs-62453ea61597",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.11593462717058223,
|
||||
"y": 0.5922056384742952,
|
||||
"category": "sniper",
|
||||
"label": "sniper scav",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Sniper/sniper scav copy 4",
|
||||
"id": "customs-c6322689932e",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.9605464759959143,
|
||||
"y": 0.4266998341625207,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 22",
|
||||
"id": "customs-0227a0d92bd6",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.055286006128702755,
|
||||
"y": 0.623714759535655,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 6",
|
||||
"id": "customs-11a44228d5a5",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.7811542390194075,
|
||||
"y": 0.6482587064676617,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 28",
|
||||
"id": "customs-197490a0f1ff",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.08082226762002043,
|
||||
"y": 0.7669983416252073,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 4",
|
||||
"id": "customs-25196058bf27",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.8541879468845761,
|
||||
"y": 0.35140961857379766,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 24",
|
||||
"id": "customs-266ff463297d",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.7911133810010215,
|
||||
"y": 0.21077943615257047,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 18",
|
||||
"id": "customs-32ead0fe5f3f",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.8541879468845761,
|
||||
"y": 0.2021558872305141,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 19",
|
||||
"id": "customs-3c2c7c9a6312",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.8008171603677222,
|
||||
"y": 0.38159203980099504,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 25",
|
||||
"id": "customs-3cd5b575ccbd",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.3319713993871297,
|
||||
"y": 0.8396351575456054,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 2",
|
||||
"id": "customs-3e60d622507c",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.29647599591419815,
|
||||
"y": 0.37960199004975126,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 12",
|
||||
"id": "customs-48d81c63acec",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.6338100102145046,
|
||||
"y": 0.37529021558872305,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 16",
|
||||
"id": "customs-4d3f1d8b678d",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.9586312563840653,
|
||||
"y": 0.24361525704809286,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 20",
|
||||
"id": "customs-507ad340f871",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.18513789581205312,
|
||||
"y": 0.4625207296849088,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 10",
|
||||
"id": "customs-5e43607e5e31",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.8803626149131767,
|
||||
"y": 0.4369817578772803,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 23",
|
||||
"id": "customs-6574d6938a80",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.9029622063329928,
|
||||
"y": 0.3461028192371476,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 21",
|
||||
"id": "customs-72661212f14f",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.13291624106230848,
|
||||
"y": 0.35306799336650085,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 9",
|
||||
"id": "customs-7354b5ed9c33",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.12512768130745658,
|
||||
"y": 0.4582089552238806,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 7",
|
||||
"id": "customs-85556b9d8e30",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.351123595505618,
|
||||
"y": 0.4044776119402985,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 13",
|
||||
"id": "customs-886a7e584942",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.6735188968335035,
|
||||
"y": 0.77893864013267,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 17",
|
||||
"id": "customs-9e0559b93ba9",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.14632277834525026,
|
||||
"y": 0.6718076285240464,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 5",
|
||||
"id": "customs-a119a82e3859",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.38508682328907046,
|
||||
"y": 0.2396351575456053,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 14",
|
||||
"id": "customs-b226c6d28a0e",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.22880490296220635,
|
||||
"y": 0.39850746268656717,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 11",
|
||||
"id": "customs-c6c0f982ee76",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.2708120531154239,
|
||||
"y": 0.8867330016583748,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy",
|
||||
"id": "customs-d124b0abd9d0",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.5980592441266599,
|
||||
"y": 0.3703150912106136,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 15",
|
||||
"id": "customs-d3b43a37024f",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.8557201225740552,
|
||||
"y": 0.587893864013267,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 27",
|
||||
"id": "customs-d40d79856598",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.1610061287027579,
|
||||
"y": 0.8714759535655058,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 3",
|
||||
"id": "customs-d95aeebf22ee",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.8042645556690501,
|
||||
"y": 0.5003316749585406,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 26",
|
||||
"id": "customs-f11e8989f1e8",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.07941777323799795,
|
||||
"y": 0.39917081260364845,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Playerspawn/playerspawn copy 8",
|
||||
"id": "customs-fba89d253aa6",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.045965270684371805,
|
||||
"y": 0.818407960199005,
|
||||
"category": "transit",
|
||||
"label": "RESERVE TRANSIT",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Transit/RESERVE TRANSIT",
|
||||
"id": "customs-9f7c39f76080",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.6399387129724209,
|
||||
"y": 0.8479270315091211,
|
||||
"category": "transit",
|
||||
"label": "SHORELINE TRANSIT",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Transit/SHORELINE TRANSIT",
|
||||
"id": "customs-bcc687bd5d10",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.3282686414708887,
|
||||
"y": 0.22570480928689884,
|
||||
"category": "transit",
|
||||
"label": "FACTORY TRANSIT",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Transit/FACTORY TRANSIT",
|
||||
"id": "customs-d9217df987d4",
|
||||
"mapId": "customs"
|
||||
},
|
||||
{
|
||||
"x": 0.9765066394279878,
|
||||
"y": 0.19502487562189055,
|
||||
"category": "transit",
|
||||
"label": "INTERCHANGE TRANSIT",
|
||||
"source": "OVERLAYS/Overlay/Overlay_Captions/Transit/INTERCHANGE TRANSIT",
|
||||
"id": "customs-de8d60eb3e38",
|
||||
"mapId": "customs"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,555 @@
|
||||
{
|
||||
"version": 2,
|
||||
"mapId": "lighthouse",
|
||||
"markers": [
|
||||
{
|
||||
"x": 0.7151592202445817,
|
||||
"y": 0.530952380952381,
|
||||
"category": "boss",
|
||||
"label": "Boss area",
|
||||
"source": "NewOverlay/Goons/Goons",
|
||||
"id": "lighthouse-795b5dcaa087",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.7151592202445817,
|
||||
"y": 0.16547619047619047,
|
||||
"category": "boss",
|
||||
"label": "Boss area",
|
||||
"source": "NewOverlay/Goons/Goons",
|
||||
"id": "lighthouse-8af3e5b39c00",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.6241070347499698,
|
||||
"y": 0.2306878306878307,
|
||||
"category": "boss",
|
||||
"label": "Boss area",
|
||||
"source": "NewOverlay/Goons/Goons",
|
||||
"id": "lighthouse-fd2a7675dbef",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.7709771158735924,
|
||||
"y": 0.8235449735449736,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-1d93fecefebe",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.9379464826250151,
|
||||
"y": 0.4332010582010582,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-26bd27068ca6",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.7449449085845744,
|
||||
"y": 0.12433862433862433,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-2b76c5d61236",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.9318924809298946,
|
||||
"y": 0.358994708994709,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-363bbfb9395c",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.7910764015013925,
|
||||
"y": 0.22473544973544973,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-5c07c4386df6",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.6666061266497154,
|
||||
"y": 0.9014550264550265,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-5c88a1398547",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.8528272187916213,
|
||||
"y": 0.2261904761904762,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-5cbd3d9e55f5",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.7203656617023853,
|
||||
"y": 0.039285714285714285,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-67bb41dac714",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.5701053396294951,
|
||||
"y": 0.2771164021164021,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-6b429f288153",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.578944182104371,
|
||||
"y": 0.7330687830687831,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-6e1f29637762",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.5699842595955927,
|
||||
"y": 0.192989417989418,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-7c63cbd6cc4b",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.6162368325463131,
|
||||
"y": 0.7888888888888889,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-8c0e60199a54",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.5849981837994914,
|
||||
"y": 0.11177248677248677,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-90ef9b9da8c3",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.7266618234653106,
|
||||
"y": 0.7792328042328043,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-a6e623639cba",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.6302821164789926,
|
||||
"y": 0.41243386243386243,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-af20bbb151f6",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.6296767163094805,
|
||||
"y": 0.8771164021164021,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-c5cbe65e6582",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.7577793921782298,
|
||||
"y": 0.6604497354497354,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-d6fdc579f9f2",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.6258021552246035,
|
||||
"y": 0.6453703703703704,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-da414c8b0a14",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.7145538200750696,
|
||||
"y": 0.717989417989418,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-dfc6ad771122",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.8358760140452839,
|
||||
"y": 0.26706349206349206,
|
||||
"category": "cache",
|
||||
"label": "Cache",
|
||||
"source": "NewOverlay/Caches/Cache",
|
||||
"id": "lighthouse-e8927d5b80e5",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.9114299552003875,
|
||||
"y": 0.2562830687830688,
|
||||
"category": "extract-hidden",
|
||||
"label": "PASSAGE BY THE LAKE",
|
||||
"source": "ExtractNames/Neutral/PASSAGE BY THE LAKE",
|
||||
"id": "lighthouse-5c45ba80961f",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.7221213221939702,
|
||||
"y": 0.7558201058201058,
|
||||
"category": "extract-neutral",
|
||||
"label": "SIDE TUNNEL",
|
||||
"source": "ExtractNames/Neutral/SIDE TUNNEL",
|
||||
"id": "lighthouse-1dbc2b60eb8a",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.6486257416152077,
|
||||
"y": 0.10357142857142858,
|
||||
"category": "extract-neutral",
|
||||
"label": "ARMORED TRAIN",
|
||||
"source": "ExtractNames/Neutral/ARMORED TRAIN",
|
||||
"id": "lighthouse-3e26943bc70f",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.8763772853856399,
|
||||
"y": 0.5,
|
||||
"category": "extract-neutral",
|
||||
"label": "PATH TO SHORELINE",
|
||||
"source": "ExtractNames/Neutral/PATH TO SHORELINE",
|
||||
"id": "lighthouse-c01649a1b232",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.8218912701295557,
|
||||
"y": 0.8124338624338624,
|
||||
"category": "extract-pmc",
|
||||
"label": "SOUTHERN ROAD",
|
||||
"source": "ExtractNames/PMC/SOUTHERN ROAD",
|
||||
"id": "lighthouse-0b05f091922e",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.7509383702627437,
|
||||
"y": 0.5452380952380952,
|
||||
"category": "extract-pmc",
|
||||
"label": "MOUNTAIN PASS",
|
||||
"source": "ExtractNames/PMC/MOUNTAIN PASS",
|
||||
"id": "lighthouse-21b971e3df9a",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.5757355612059571,
|
||||
"y": 0.04775132275132275,
|
||||
"category": "extract-pmc",
|
||||
"label": "NORTHERN CHECKPOINT",
|
||||
"source": "ExtractNames/PMC/NORTHERN CHECKPOINT",
|
||||
"id": "lighthouse-2beab5ec57a9",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.8653590023005207,
|
||||
"y": 0.13994708994708996,
|
||||
"category": "extract-pmc",
|
||||
"label": "ROAD TO MILITARY BASE V-EX",
|
||||
"source": "ExtractNames/PMC/ROAD TO MILITARY BASE V-EX",
|
||||
"id": "lighthouse-8a66e9466467",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.5254873471364572,
|
||||
"y": 0.30846560846560844,
|
||||
"category": "extract-scav",
|
||||
"label": "SCAV HIDEOUT AT THE GROTTO",
|
||||
"source": "ExtractNames/Scav/SCAV HIDEOUT AT THE GROTTO",
|
||||
"id": "lighthouse-4d943d2cc9c8",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.5757355612059571,
|
||||
"y": 0.7326719576719577,
|
||||
"category": "extract-scav",
|
||||
"label": "HIDEOUT UNDER LANDING STAGE",
|
||||
"source": "ExtractNames/Scav/HIDEOUT UNDER LANDING STAGE",
|
||||
"id": "lighthouse-5e50efd6c093",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.8366630342656496,
|
||||
"y": 0.8123015873015873,
|
||||
"category": "extract-scav",
|
||||
"label": "SOUTH ROAD LANDSLIDE",
|
||||
"source": "ExtractNames/Scav/SOUTH ROAD LANDSLIDE",
|
||||
"id": "lighthouse-dc42df91c82e",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.7528756508051823,
|
||||
"y": 0.13333333333333333,
|
||||
"category": "extract-scav",
|
||||
"label": "INDUSTRIAL ZONE GATES",
|
||||
"source": "ExtractNames/Scav/INDUSTRIAL ZONE GATES",
|
||||
"id": "lighthouse-f5b5e1c54e40",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.5908705654437584,
|
||||
"y": 0.7389550264550264,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "NewOverlay/AIScavs/AI Scavs",
|
||||
"id": "lighthouse-0efb358d3949",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.4886790168301247,
|
||||
"y": 0.7482804232804233,
|
||||
"category": "scav",
|
||||
"label": "Hbox",
|
||||
"source": "Overlay/Boxes and Letters/Scav boxes/Hbox",
|
||||
"id": "lighthouse-127d5904a942",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.7353190458893328,
|
||||
"y": 0.6089285714285714,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "NewOverlay/AIScavs/AI Scavs",
|
||||
"id": "lighthouse-3802c245ce07",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.6405133793437462,
|
||||
"y": 0.12043650793650794,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "NewOverlay/AIScavs/AI Scavs",
|
||||
"id": "lighthouse-51e1455e9816",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.8115994672478508,
|
||||
"y": 0.3823412698412698,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "NewOverlay/AIScavs/AI Scavs",
|
||||
"id": "lighthouse-544c4c101c80",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.6514105823949631,
|
||||
"y": 0.44966931216931216,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "NewOverlay/AIScavs/AI Scavs",
|
||||
"id": "lighthouse-684b69d0fec1",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.4091294345562417,
|
||||
"y": 0.8439814814814814,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "NewOverlay/AIScavs/AI Scavs",
|
||||
"id": "lighthouse-960efccccb67",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.4886790168301247,
|
||||
"y": 0.3104497354497355,
|
||||
"category": "scav",
|
||||
"label": "Gbox",
|
||||
"source": "Overlay/Boxes and Letters/Scav boxes/Gbox",
|
||||
"id": "lighthouse-b3332be6ae81",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.703717157040804,
|
||||
"y": 0.5163359788359788,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "NewOverlay/AIScavs/AI Scavs",
|
||||
"id": "lighthouse-c5a36dfd6ba0",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.7654679743310329,
|
||||
"y": 0.44583333333333336,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "NewOverlay/AIScavs/AI Scavs",
|
||||
"id": "lighthouse-fb0738dfb2c5",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.8619687613512532,
|
||||
"y": 0.9314814814814815,
|
||||
"category": "scav",
|
||||
"label": "Lbox",
|
||||
"source": "Overlay/Boxes and Letters/Scav boxes/Lbox",
|
||||
"id": "lighthouse-ff4a0454e9c5",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.9065867538442911,
|
||||
"y": 0.34120370370370373,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "NewOverlay/PMCSpawn/PMCSpawn",
|
||||
"id": "lighthouse-21eed6b96f3f",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.5756750211890059,
|
||||
"y": 0.6146164021164021,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "NewOverlay/PMCSpawn/PMCSpawn",
|
||||
"id": "lighthouse-2d13c3aae28a",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.5923840658675384,
|
||||
"y": 0.8253306878306879,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "NewOverlay/PMCSpawn/PMCSpawn",
|
||||
"id": "lighthouse-3a827ea03227",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.6930015740404407,
|
||||
"y": 0.759457671957672,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "NewOverlay/PMCSpawn/PMCSpawn",
|
||||
"id": "lighthouse-412bfa7b8667",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.6541348831577672,
|
||||
"y": 0.5240079365079365,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "NewOverlay/PMCSpawn/PMCSpawn",
|
||||
"id": "lighthouse-4b2f953a9c61",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.6185373531904589,
|
||||
"y": 0.7316798941798942,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "NewOverlay/PMCSpawn/PMCSpawn",
|
||||
"id": "lighthouse-55f492be4cb2",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.8910885095047827,
|
||||
"y": 0.27374338624338623,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "NewOverlay/PMCSpawn/PMCSpawn",
|
||||
"id": "lighthouse-901a205f200b",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.7381644266860394,
|
||||
"y": 0.8595899470899471,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "NewOverlay/PMCSpawn/PMCSpawn",
|
||||
"id": "lighthouse-9c3b077c0e0e",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.5761593413246155,
|
||||
"y": 0.48697089947089944,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "NewOverlay/PMCSpawn/PMCSpawn",
|
||||
"id": "lighthouse-bd3f647417f9",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.7977358033660249,
|
||||
"y": 0.46355820105820106,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "NewOverlay/PMCSpawn/PMCSpawn",
|
||||
"id": "lighthouse-c8c33f69faa6",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.7614117931953021,
|
||||
"y": 0.4904100529100529,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "NewOverlay/PMCSpawn/PMCSpawn",
|
||||
"id": "lighthouse-ee9a1fa70a49",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.7506356701779876,
|
||||
"y": 0.6987433862433863,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "NewOverlay/PMCSpawn/PMCSpawn",
|
||||
"id": "lighthouse-f2bc8383037c",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.8377527545707713,
|
||||
"y": 0.12301587301587301,
|
||||
"category": "transit",
|
||||
"label": "TRANSIT TO RESERVE",
|
||||
"source": "ExtractNames/Transit/TRANSIT TO RESERVE",
|
||||
"id": "lighthouse-482123395a57",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.5371110303910885,
|
||||
"y": 0.05992063492063492,
|
||||
"category": "transit",
|
||||
"label": "TRANSIT TO WOODS",
|
||||
"source": "ExtractNames/Transit/TRANSIT TO WOODS",
|
||||
"id": "lighthouse-5e60d5ddfb70",
|
||||
"mapId": "lighthouse"
|
||||
},
|
||||
{
|
||||
"x": 0.9137910158614845,
|
||||
"y": 0.4808201058201058,
|
||||
"category": "transit",
|
||||
"label": "TRANSIT TO SHORELINE",
|
||||
"source": "ExtractNames/Transit/TRANSIT TO SHORELINE",
|
||||
"id": "lighthouse-7c85b5739ab8",
|
||||
"mapId": "lighthouse"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,411 @@
|
||||
{
|
||||
"version": 2,
|
||||
"mapId": "reserve",
|
||||
"markers": [
|
||||
{
|
||||
"x": 0.36323784722222224,
|
||||
"y": 0.3064043209876543,
|
||||
"category": "boss",
|
||||
"label": "Boss area",
|
||||
"source": "New_ONMAP/Icons/BOSS/BOSS",
|
||||
"id": "reserve-06b86149b79a",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.7746527777777777,
|
||||
"y": 0.8270061728395062,
|
||||
"category": "boss",
|
||||
"label": "Boss area",
|
||||
"source": "New_ONMAP/Icons/BOSS/BOSS",
|
||||
"id": "reserve-0df1bde4dcff",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.41024305555555557,
|
||||
"y": 0.17916666666666667,
|
||||
"category": "boss",
|
||||
"label": "Boss area",
|
||||
"source": "New_ONMAP/Icons/BOSS/BOSS",
|
||||
"id": "reserve-2c3ce627f529",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.7954861111111111,
|
||||
"y": 0.3476851851851852,
|
||||
"category": "boss",
|
||||
"label": "Boss area",
|
||||
"source": "New_ONMAP/Icons/BOSS/BOSS",
|
||||
"id": "reserve-38ea1f2ec76c",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.7237847222222222,
|
||||
"y": 0.2631172839506173,
|
||||
"category": "boss",
|
||||
"label": "Boss area",
|
||||
"source": "New_ONMAP/Icons/BOSS/BOSS",
|
||||
"id": "reserve-acb49fa0662d",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.38515625,
|
||||
"y": 0.05324074074074074,
|
||||
"category": "extract-hidden",
|
||||
"label": "EXIT TO WOODS",
|
||||
"source": "New_ONMAP/ExfilNames/Hidden/EXIT TO WOODS",
|
||||
"id": "reserve-e58d239cf4b2",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.2654947916666667,
|
||||
"y": 0.21736111111111112,
|
||||
"category": "extract-neutral",
|
||||
"label": "ARMORED TRAIN",
|
||||
"source": "New_ONMAP/ExfilNames/Transits/ARMORED TRAIN",
|
||||
"id": "reserve-773006408d0c",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.6537326388888889,
|
||||
"y": 0.05933641975308642,
|
||||
"category": "extract-neutral",
|
||||
"label": "SCAV LANDS",
|
||||
"source": "New_ONMAP/ExfilNames/Transits/SCAV LANDS",
|
||||
"id": "reserve-954e2a583a7f",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.3747829861111111,
|
||||
"y": 0.14429012345679013,
|
||||
"category": "extract-neutral",
|
||||
"label": "BUNKER HERMETIC DOOR",
|
||||
"source": "New_ONMAP/ExfilNames/Transits/BUNKER HERMETIC DOOR",
|
||||
"id": "reserve-a66c1d393995",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.5835069444444444,
|
||||
"y": 0.729783950617284,
|
||||
"category": "extract-pmc",
|
||||
"label": "CLIFF DESCENT",
|
||||
"source": "New_ONMAP/ExfilNames/PMC/CLIFF DESCENT",
|
||||
"id": "reserve-8e0c9d8b065b",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.4375,
|
||||
"y": 0.48811728395061726,
|
||||
"category": "extract-pmc",
|
||||
"label": "SEWER MANHOLE",
|
||||
"source": "New_ONMAP/ExfilNames/Transits/SEWER MANHOLE",
|
||||
"id": "reserve-9382c4d894c8",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.48272569444444446,
|
||||
"y": 0.027083333333333334,
|
||||
"category": "extract-scav",
|
||||
"label": "HEATING PIPE",
|
||||
"source": "New_ONMAP/ExfilNames/SCAV/HEATING PIPE",
|
||||
"id": "reserve-402e826c5832",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.715625,
|
||||
"y": 0.8433641975308642,
|
||||
"category": "extract-scav",
|
||||
"label": "DEPOT HERMETIC DOOR",
|
||||
"source": "New_ONMAP/ExfilNames/SCAV/DEPOT HERMETIC DOOR",
|
||||
"id": "reserve-5c1fd13270a2",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.2655815972222222,
|
||||
"y": 0.3053240740740741,
|
||||
"category": "extract-scav",
|
||||
"label": "DEPOT HERMETIC DOOR (UNDERGROUND)",
|
||||
"source": "New_ONMAP/ExfilNames/SCAV/DEPOT HERMETIC DOOR (UNDERGROUND)",
|
||||
"id": "reserve-79cd5266a8b8",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.9802951388888889,
|
||||
"y": 0.3090277777777778,
|
||||
"category": "extract-scav",
|
||||
"label": "HOLE IN THE WALL BY THE MOUNTAINS",
|
||||
"source": "New_ONMAP/ExfilNames/SCAV/HOLE IN THE WALL BY THE MOUNTAINS",
|
||||
"id": "reserve-c9352592a1fa",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.5033854166666667,
|
||||
"y": 0.6575617283950618,
|
||||
"category": "extract-scav",
|
||||
"label": "CHECKPOINT FENCE",
|
||||
"source": "New_ONMAP/ExfilNames/SCAV/CHECKPOINT FENCE",
|
||||
"id": "reserve-cd5925657f72",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.7163194444444444,
|
||||
"y": 0.35,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "New_ONMAP/Icons/AIScav/AI SCAV",
|
||||
"id": "reserve-01e025b63ed8",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.2126736111111111,
|
||||
"y": 0.3984567901234568,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "New_ONMAP/Icons/AIScav/AI SCAV",
|
||||
"id": "reserve-0ef59a76af05",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.4348958333333333,
|
||||
"y": 0.33425925925925926,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "New_ONMAP/Icons/AIScav/AI SCAV",
|
||||
"id": "reserve-38eb9bd3b1f3",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.6055555555555555,
|
||||
"y": 0.3197530864197531,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "New_ONMAP/Icons/AIScav/AI SCAV",
|
||||
"id": "reserve-44140b18cd81",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.7953125,
|
||||
"y": 0.3743827160493827,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "New_ONMAP/Icons/AIScav/AI SCAV",
|
||||
"id": "reserve-4e5cbc81ee68",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.31840277777777776,
|
||||
"y": 0.07716049382716049,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "New_ONMAP/Icons/AIScav/AI SCAV",
|
||||
"id": "reserve-60c71cbb81ba",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.42413194444444446,
|
||||
"y": 0.1787037037037037,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "New_ONMAP/Icons/AIScav/AI SCAV",
|
||||
"id": "reserve-725a34ba3b34",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.9135416666666667,
|
||||
"y": 0.6839506172839506,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "New_ONMAP/Icons/AIScav/AI SCAV",
|
||||
"id": "reserve-799e92ecdefc",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.6083333333333333,
|
||||
"y": 0.24537037037037038,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "New_ONMAP/Icons/AIScav/AI SCAV",
|
||||
"id": "reserve-911583aed3b7",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.15416666666666667,
|
||||
"y": 0.1515432098765432,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "New_ONMAP/Icons/AIScav/AI SCAV",
|
||||
"id": "reserve-c7ce956e120e",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.7305555555555555,
|
||||
"y": 0.4623456790123457,
|
||||
"category": "scav",
|
||||
"label": "Scav area",
|
||||
"source": "New_ONMAP/Icons/AIScav/AI SCAV",
|
||||
"id": "reserve-f18115e3f62e",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.4818576388888889,
|
||||
"y": 0.36450617283950615,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "New_ONMAP/Icons/PMCSpawn/PMC SPAWN",
|
||||
"id": "reserve-4f69ce8ef41b",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.4908854166666667,
|
||||
"y": 0.08425925925925926,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "New_ONMAP/Icons/PMCSpawn/PMC SPAWN",
|
||||
"id": "reserve-5a7335e725ca",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.35147569444444443,
|
||||
"y": 0.3030864197530864,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "New_ONMAP/Icons/PMCSpawn/PMC SPAWN",
|
||||
"id": "reserve-65f8b6cef233",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.43602430555555555,
|
||||
"y": 0.49907407407407406,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "New_ONMAP/Icons/PMCSpawn/PMC SPAWN",
|
||||
"id": "reserve-874ed0892d69",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.7509548611111111,
|
||||
"y": 0.6314814814814815,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "New_ONMAP/Icons/PMCSpawn/PMC SPAWN",
|
||||
"id": "reserve-a9366a0672a1",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.19036458333333334,
|
||||
"y": 0.05277777777777778,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "New_ONMAP/Icons/PMCSpawn/PMC SPAWN",
|
||||
"id": "reserve-b7c49fa8d321",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.6860243055555556,
|
||||
"y": 0.24290123456790125,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "New_ONMAP/Icons/PMCSpawn/PMC SPAWN",
|
||||
"id": "reserve-c50f7ccf4dfe",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.2837673611111111,
|
||||
"y": 0.462037037037037,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "New_ONMAP/Icons/PMCSpawn/PMC SPAWN",
|
||||
"id": "reserve-ce22c020488f",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.5846354166666666,
|
||||
"y": 0.36728395061728397,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "New_ONMAP/Icons/PMCSpawn/PMC SPAWN",
|
||||
"id": "reserve-d028dbbf7821",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.3412326388888889,
|
||||
"y": 0.09166666666666666,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "New_ONMAP/Icons/PMCSpawn/PMC SPAWN",
|
||||
"id": "reserve-d2387b098962",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.17977430555555557,
|
||||
"y": 0.26481481481481484,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "New_ONMAP/Icons/PMCSpawn/PMC SPAWN",
|
||||
"id": "reserve-d931552d8f14",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.6587673611111111,
|
||||
"y": 0.09104938271604938,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "New_ONMAP/Icons/PMCSpawn/PMC SPAWN",
|
||||
"id": "reserve-de17cffe2eac",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.19296875,
|
||||
"y": 0.1814814814814815,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "New_ONMAP/Icons/PMCSpawn/PMC SPAWN",
|
||||
"id": "reserve-e3b4452492ca",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.8141493055555555,
|
||||
"y": 0.345679012345679,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "New_ONMAP/Icons/PMCSpawn/PMC SPAWN",
|
||||
"id": "reserve-ef46a85a58d3",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.9497395833333333,
|
||||
"y": 0.754320987654321,
|
||||
"category": "spawn",
|
||||
"label": "PMC spawn",
|
||||
"source": "New_ONMAP/Icons/PMCSpawn/PMC SPAWN",
|
||||
"id": "reserve-f512e6f317ec",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.09652777777777778,
|
||||
"y": 0.2763888888888889,
|
||||
"category": "transit",
|
||||
"label": "LIGHTHOUSE",
|
||||
"source": "New_ONMAP/ExfilNames/Transits/LIGHTHOUSE",
|
||||
"id": "reserve-0ebad53ef82e",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.7447916666666666,
|
||||
"y": 0.052006172839506176,
|
||||
"category": "transit",
|
||||
"label": "CUSTOMS",
|
||||
"source": "New_ONMAP/ExfilNames/Transits/CUSTOMS",
|
||||
"id": "reserve-1a462000b86e",
|
||||
"mapId": "reserve"
|
||||
},
|
||||
{
|
||||
"x": 0.12239583333333333,
|
||||
"y": 0.14737654320987653,
|
||||
"category": "transit",
|
||||
"label": "WOODS",
|
||||
"source": "New_ONMAP/ExfilNames/Transits/WOODS",
|
||||
"id": "reserve-b3f1d35145a4",
|
||||
"mapId": "reserve"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"version": 1,
|
||||
"overrides": {
|
||||
"woods-dde51526a468": {
|
||||
"x": 0.57379,
|
||||
"y": 0.857226
|
||||
}
|
||||
},
|
||||
"added": []
|
||||
}
|
||||
@@ -17,10 +17,15 @@
|
||||
<section id="placement-tools">
|
||||
<div class="layer-actions">
|
||||
<button id="toggle-markers" type="button" aria-pressed="true">Markers</button>
|
||||
<details id="marker-settings">
|
||||
<summary>Marker categories</summary>
|
||||
<div id="marker-categories"></div>
|
||||
</details>
|
||||
</div>
|
||||
<div class="editor-mode-actions">
|
||||
<button id="edit-placement" type="button" disabled>Placement</button>
|
||||
<button id="edit-trim" type="button" disabled>Trim area</button>
|
||||
<button id="edit-markers" type="button" disabled>Marker edit</button>
|
||||
</div>
|
||||
<div id="placement-editor" hidden>
|
||||
<strong id="placement-name"></strong>
|
||||
@@ -56,6 +61,28 @@
|
||||
<button id="trim-save" type="button">Save trim</button>
|
||||
<output id="trim-status" role="status"></output>
|
||||
</div>
|
||||
<div id="marker-editor" hidden>
|
||||
<strong id="marker-editor-name"></strong>
|
||||
<p>Click a marker to edit it, or drag it to save a new position.</p>
|
||||
<button id="marker-drop" type="button" aria-pressed="false">Drop new marker</button>
|
||||
<div id="marker-fields" hidden>
|
||||
<label class="marker-field">
|
||||
Name
|
||||
<input id="marker-label" type="text" maxlength="160" autocomplete="off">
|
||||
</label>
|
||||
<label class="marker-field">
|
||||
Category
|
||||
<select id="marker-category"></select>
|
||||
</label>
|
||||
<output id="marker-map-name"></output>
|
||||
<div class="placement-actions">
|
||||
<button id="marker-delete" type="button">Delete</button>
|
||||
<button id="marker-cancel" type="button">Cancel</button>
|
||||
<button id="marker-save" type="button">Save marker</button>
|
||||
</div>
|
||||
</div>
|
||||
<output id="marker-edit-status" role="status"></output>
|
||||
</div>
|
||||
</section>
|
||||
</details>
|
||||
|
||||
|
||||
+135
-23
@@ -123,15 +123,64 @@ html, body {
|
||||
.layer-actions button { width: 100%; min-height: 38px; }
|
||||
.layer-actions button[aria-pressed="true"] { border-color: #57806a; color: var(--accent); }
|
||||
.layer-actions button[aria-pressed="false"] { opacity: .65; }
|
||||
#marker-settings {
|
||||
margin-top: 7px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 5px;
|
||||
background: #171b20;
|
||||
}
|
||||
#marker-settings > summary {
|
||||
padding: 8px 10px;
|
||||
color: var(--muted);
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
}
|
||||
#marker-categories {
|
||||
max-height: 32vh;
|
||||
padding: 0 9px 8px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
#marker-categories fieldset { margin: 7px 0 0; padding: 3px 0 0; border: 0; }
|
||||
#marker-categories legend {
|
||||
color: var(--muted);
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
letter-spacing: .06em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
#marker-categories label {
|
||||
display: grid;
|
||||
grid-template-columns: 18px 22px 1fr;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
min-height: 29px;
|
||||
color: #d5d9df;
|
||||
font-size: 11px;
|
||||
cursor: pointer;
|
||||
}
|
||||
#marker-categories input { accent-color: var(--accent); }
|
||||
.marker-category-swatch {
|
||||
display: grid;
|
||||
width: 19px;
|
||||
height: 19px;
|
||||
place-items: center;
|
||||
border: 1px solid #fff9;
|
||||
border-radius: 50%;
|
||||
color: white;
|
||||
font-size: 10px;
|
||||
line-height: 1;
|
||||
}
|
||||
.editor-mode-actions { display: flex; gap: 7px; }
|
||||
.editor-mode-actions button { flex: 1; }
|
||||
.editor-mode-actions button:disabled { cursor: default; opacity: .45; }
|
||||
.editor-mode-actions button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
|
||||
|
||||
#placement-editor,
|
||||
#trim-editor { padding-top: 10px; }
|
||||
#trim-editor,
|
||||
#marker-editor { padding-top: 10px; }
|
||||
#placement-editor p,
|
||||
#trim-editor p { margin: 5px 0 9px; color: var(--muted); font-size: 12px; }
|
||||
#trim-editor p,
|
||||
#marker-editor p { margin: 5px 0 9px; color: var(--muted); font-size: 12px; }
|
||||
|
||||
.coordinate-fields,
|
||||
.placement-actions {
|
||||
@@ -193,6 +242,49 @@ html, body {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#marker-drop {
|
||||
width: 100%;
|
||||
min-height: 38px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 5px;
|
||||
background: #2a3038;
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
}
|
||||
#marker-drop[aria-pressed="true"] { border-color: #ffcf4a; color: #ffcf4a; }
|
||||
#marker-fields { margin-top: 9px; }
|
||||
.marker-field {
|
||||
display: block;
|
||||
margin-top: 7px;
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
.marker-field input,
|
||||
.marker-field select {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-top: 3px;
|
||||
padding: 7px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 4px;
|
||||
background: #14171c;
|
||||
color: var(--text);
|
||||
}
|
||||
#marker-map-name,
|
||||
#marker-edit-status {
|
||||
display: block;
|
||||
min-height: 17px;
|
||||
margin-top: 7px;
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
#marker-edit-status[data-error="true"] { color: #ff9b94; }
|
||||
#marker-delete { background: #57292c; border-color: #8b4348; color: #ffd8d5; }
|
||||
#marker-save { background: #27513a; border-color: #3f7957; }
|
||||
#map.marker-editing .poi-icon { cursor: grab; }
|
||||
#map.marker-editing .poi-icon:active { cursor: grabbing; }
|
||||
#map.marker-dropping { cursor: crosshair; }
|
||||
|
||||
/* --- semantic marker layer ----------------------------------------- */
|
||||
|
||||
.leaflet-marker-icon.poi-icon {
|
||||
@@ -203,21 +295,35 @@ html, body {
|
||||
|
||||
.poi-content { position: absolute; inset: 0; }
|
||||
|
||||
.poi-leader {
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
display: none;
|
||||
height: 2px;
|
||||
border-radius: 2px;
|
||||
background: #eef3f6e6;
|
||||
box-shadow: 0 0 0 1px #10161dcc, 0 1px 3px #000b;
|
||||
pointer-events: none;
|
||||
transform-origin: 0 50%;
|
||||
}
|
||||
|
||||
.poi-dot {
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
inset: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 2px solid #f5f7f8;
|
||||
border-radius: 50%;
|
||||
background: #3d78a8;
|
||||
background: var(--marker-color, #3d78a8);
|
||||
color: white;
|
||||
font: 700 10px/1 system-ui, sans-serif;
|
||||
font: 700 clamp(8px, calc(var(--marker-size, 18px) * .55), 15px)/1 system-ui, sans-serif;
|
||||
box-shadow: 0 1px 4px #000c;
|
||||
}
|
||||
|
||||
.poi-label {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
left: 21px;
|
||||
top: 50%;
|
||||
width: max-content;
|
||||
@@ -234,26 +340,32 @@ html, body {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.poi-label-hidden { display: none !important; }
|
||||
|
||||
#map:not(.marker-labels-visible) .poi-label { display: none; }
|
||||
#map.marker-overview .poi-icon { opacity: .7; }
|
||||
#map.marker-overview .poi-dot { inset: 3px; font-size: 0; border-width: 1px; }
|
||||
.marker-extract-pmc .poi-dot { background: #39946a; }
|
||||
.marker-extract-scav .poi-dot { background: #d18a32; }
|
||||
.marker-extract-neutral .poi-dot { background: #4a9fa5; }
|
||||
.marker-extract-hidden .poi-dot { background: #7957a6; }
|
||||
.marker-transit .poi-dot { background: #406fbd; }
|
||||
.marker-spawn .poi-dot { background: #4f8ac7; }
|
||||
.marker-scav .poi-dot { background: #c28135; }
|
||||
.marker-boss .poi-dot { background: #bd3f45; }
|
||||
.marker-cultist .poi-dot { background: #7552a0; }
|
||||
.marker-sniper .poi-dot,
|
||||
.marker-hazard .poi-dot { background: #b43c3c; }
|
||||
.marker-cache .poi-dot,
|
||||
.marker-loot .poi-dot { background: #8a7140; }
|
||||
.marker-key .poi-dot,
|
||||
.marker-quest .poi-dot { background: #9a7830; }
|
||||
.marker-location .poi-dot,
|
||||
.marker-poi .poi-dot { background: #5d6876; }
|
||||
#map.marker-extract-labels-visible .marker-extract .poi-label { display: block; }
|
||||
#map.marker-overview .poi-icon:not(.marker-extract) { opacity: .7; }
|
||||
#map.marker-overview .poi-icon:not(.marker-extract) .poi-dot {
|
||||
inset: 3px;
|
||||
font-size: 0;
|
||||
border-width: 1px;
|
||||
}
|
||||
.marker-extract .poi-dot {
|
||||
border-width: 3px;
|
||||
box-shadow: 0 0 0 2px #10161cd9, 0 2px 8px #000e;
|
||||
}
|
||||
.marker-extract .poi-label { font-size: 12px; font-weight: 750; }
|
||||
|
||||
.poi-tooltip {
|
||||
padding: 6px 8px;
|
||||
border: 1px solid #5a6470;
|
||||
background: #12171deF;
|
||||
color: var(--text);
|
||||
box-shadow: 0 3px 10px #000a;
|
||||
}
|
||||
.poi-tooltip::before { border-top-color: #5a6470 !important; }
|
||||
.poi-tooltip strong { display: block; font-size: 12px; }
|
||||
.poi-tooltip span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
|
||||
|
||||
.trim-vertex {
|
||||
width: 14px !important;
|
||||
|
||||
Reference in new issue
Block a user