103 lines
4.0 KiB
HTML
103 lines
4.0 KiB
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>
|
|
|
|
<div id="map-toolbar">
|
|
<details id="panel" open>
|
|
<summary>Maps</summary>
|
|
<nav id="maplist"></nav>
|
|
<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>
|
|
<button id="export-static" type="button">Export site ZIP</button>
|
|
<output id="export-status" role="status"></output>
|
|
</div>
|
|
<div id="placement-editor" hidden>
|
|
<strong id="placement-name"></strong>
|
|
<p>Drag the center anchor to align this map with the overall map.</p>
|
|
<div class="coordinate-fields">
|
|
<label>X <input id="placement-x" type="number" step="0.1"></label>
|
|
<label>Y <input id="placement-y" type="number" step="0.1"></label>
|
|
</div>
|
|
<div class="coordinate-fields size-fields">
|
|
<label>Width <input id="placement-width" type="number" min="1" step="0.1"></label>
|
|
<label>Height <input id="placement-height" type="number" min="1" step="0.1"></label>
|
|
</div>
|
|
<output id="placement-aspect"></output>
|
|
<div class="placement-actions">
|
|
<button id="placement-reset" type="button">Reset</button>
|
|
<button id="placement-save" type="button">Save & rebuild</button>
|
|
</div>
|
|
<output id="placement-status" role="status"></output>
|
|
</div>
|
|
<div id="trim-editor" hidden>
|
|
<strong id="trim-name"></strong>
|
|
<p>Click around the playable boundary to add points. Drag a point to refine it.</p>
|
|
<label class="transparency-field">
|
|
Outside transparency
|
|
<input id="trim-transparency" type="range" min="0" max="100" step="1" value="75">
|
|
<output id="trim-transparency-value">75%</output>
|
|
</label>
|
|
<output id="trim-point-count">0 points</output>
|
|
<div class="placement-actions trim-actions">
|
|
<button id="trim-undo" type="button">Undo point</button>
|
|
<button id="trim-clear" type="button">Clear</button>
|
|
</div>
|
|
<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>
|
|
<div class="marker-editor-actions">
|
|
<button id="marker-drop" type="button" aria-pressed="false">Drop new marker</button>
|
|
<button id="marker-reset" type="button">Reset this map</button>
|
|
</div>
|
|
<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>
|
|
<button id="overview-map" type="button">Overview</button>
|
|
</div>
|
|
|
|
<div id="boot">Loading…</div>
|
|
|
|
<script src="vendor/leaflet.js"></script>
|
|
<script src="app.js"></script>
|
|
</body>
|
|
</html>
|