Extracts only the base map art from re3mr PSDs (the top-level LOCATION group), tiles it to WebP, and renders every map on one shared world canvas. Pipeline: psd_tree -> export_base -> tile -> build -> preview, driven entirely by maps.json. Adding a map is a config change. Maps are placed on an 8192px grid (tileSize * 2^maxZoom) so a cell's tile index shift is exactly cell * 2^z at every zoom. Each map keeps its own locally numbered pyramid and the browser translates on the fly, so adding a map never re-tiles the others. excludeLayers works around psd-tools rendering stroke-only vector shapes as solid fills, which otherwise buries Customs under a white fill. Co-Authored-By: Claude Opus 5 <[email protected]>
25 lines
543 B
HTML
25 lines
543 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, viewport-fit=cover">
|
|
<title>Tarkov Maps</title>
|
|
<link rel="stylesheet" href="vendor/leaflet.css">
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
|
|
<div id="map"></div>
|
|
|
|
<details id="panel" open>
|
|
<summary>Maps</summary>
|
|
<nav id="maplist"></nav>
|
|
</details>
|
|
|
|
<div id="boot">Loading…</div>
|
|
|
|
<script src="vendor/leaflet.js"></script>
|
|
<script src="app.js"></script>
|
|
</body>
|
|
</html>
|