The category panel gets "Alle anzeigen" / "Alle verstecken" buttons. Tactics belong to a region and are split into steps, each its own drawing layer: pen, arrow, line, area, circle, labelled point, text and eraser, with colour, stroke width and undo. A new step can start empty or as a copy of the current one, earlier steps can be shown faded underneath, and steps can be renamed, reordered and deleted. Viewing needs map.view, editing map.tactics. Drawings are stored per shape in world coordinates (the same as the markers) through tactics_api.php in three new tables; the map page offers to create them when they are missing. The viewer's own code only gains two hooks (view change, map change) and the show/hide-all method. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
153 lines
No EOL
7.6 KiB
HTML
153 lines
No EOL
7.6 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>Aion 2 - Interactive Map Viewer</title>
|
||
<link rel="stylesheet" href="styles.css">
|
||
</head>
|
||
<body>
|
||
<!-- Main map container -->
|
||
<div id="map-container">
|
||
<canvas id="map-canvas"></canvas>
|
||
|
||
<!-- Loading overlay -->
|
||
<div id="loading-overlay" class="hidden">
|
||
<div class="spinner"></div>
|
||
<p>Loading map data...</p>
|
||
</div>
|
||
|
||
<!-- UI Overlay -->
|
||
<div id="ui-overlay">
|
||
<!-- Title bar with map selector -->
|
||
<header id="title-bar" class="panel">
|
||
<h1>Aion 2</h1>
|
||
<div class="map-selector-container">
|
||
<select id="map-select" aria-label="Select map">
|
||
<option value="">Loading maps...</option>
|
||
</select>
|
||
</div>
|
||
</header>
|
||
|
||
<!-- Zoom controls -->
|
||
<aside id="zoom-controls" class="panel">
|
||
<button id="btn-zoom-in" title="Zoom In (+)">+</button>
|
||
<button id="btn-zoom-out" title="Zoom Out (-)">−</button>
|
||
<button id="btn-reset-view" title="Reset View (0)">⟲</button>
|
||
</aside>
|
||
|
||
<!-- Category filter panel -->
|
||
<aside id="category-panel" class="panel">
|
||
<h3>Categories</h3>
|
||
<div class="category-bulk">
|
||
<button type="button" id="btn-show-all">Alle anzeigen</button>
|
||
<button type="button" id="btn-hide-all">Alle verstecken</button>
|
||
</div>
|
||
<div id="categories-list"></div>
|
||
</aside>
|
||
|
||
<!-- Taktiken: Liste, Schritte der gewaehlten Taktik -->
|
||
<aside id="tactic-panel" class="panel hidden">
|
||
<div class="tp-head">
|
||
<button type="button" class="tp-collapse" id="tp-collapse" title="Ein-/Ausklappen" aria-expanded="true">▾</button>
|
||
<h3>Taktiken</h3>
|
||
<button type="button" class="tp-btn hidden" id="tp-new">+ Neu</button>
|
||
</div>
|
||
<!-- Zeichenwerkzeuge (nur mit Berechtigung map.tactics) -->
|
||
<div id="tactic-toolbar" class="hidden">
|
||
<button type="button" class="tool active" data-tool="pan" title="Karte verschieben (Esc)">✋</button>
|
||
<button type="button" class="tool" data-tool="pen" title="Stift: frei zeichnen">✏️</button>
|
||
<button type="button" class="tool" data-tool="arrow" title="Pfeil: ziehen">➜</button>
|
||
<button type="button" class="tool" data-tool="line" title="Linie: ziehen">╱</button>
|
||
<button type="button" class="tool" data-tool="area" title="Fläche: Eckpunkte klicken, Doppelklick oder Enter schließt ab">⬠</button>
|
||
<button type="button" class="tool" data-tool="circle" title="Kreis: von der Mitte aus ziehen">◯</button>
|
||
<button type="button" class="tool" data-tool="point" title="Punkt mit Beschriftung setzen">📍</button>
|
||
<button type="button" class="tool" data-tool="text" title="Text setzen">T</button>
|
||
<button type="button" class="tool" data-tool="eraser" title="Radierer: Zeichnung anklicken">⌫</button>
|
||
<span class="tool-sep"></span>
|
||
<input type="color" id="tool-color" value="#ffd700" title="Farbe">
|
||
<select id="tool-width" title="Strichstärke">
|
||
<option value="2">dünn</option>
|
||
<option value="4" selected>mittel</option>
|
||
<option value="7">dick</option>
|
||
<option value="12">sehr dick</option>
|
||
</select>
|
||
<span class="tool-sep"></span>
|
||
<button type="button" class="tool" id="tool-undo" title="Letzte eigene Zeichnung in diesem Schritt entfernen (Strg+Z)">↶</button>
|
||
</div>
|
||
<div class="tp-body" id="tp-body">
|
||
<div id="tp-list"></div>
|
||
<p class="tp-message hidden" id="tp-message"></p>
|
||
<div class="tp-detail hidden" id="tp-detail">
|
||
<div class="tp-detail-head">
|
||
<strong id="tp-name"></strong>
|
||
<span class="tp-edit-only">
|
||
<button type="button" class="tp-icon" id="tp-edit" title="Taktik umbenennen/beschreiben">✎</button>
|
||
<button type="button" class="tp-icon tp-danger" id="tp-delete" title="Taktik löschen">🗑</button>
|
||
</span>
|
||
</div>
|
||
<p class="tp-desc" id="tp-desc"></p>
|
||
<h4>Schritte</h4>
|
||
<ol class="tp-steps" id="tp-steps"></ol>
|
||
<div class="tp-step-actions tp-edit-only">
|
||
<button type="button" class="tp-btn" id="tp-step-add" title="Leeren Schritt am Ende anlegen">+ Schritt</button>
|
||
<button type="button" class="tp-btn" id="tp-step-copy" title="Neuen Schritt mit den Zeichnungen des aktuellen Schritts anlegen">+ Kopie dieses Schritts</button>
|
||
</div>
|
||
<label class="tp-check">
|
||
<input type="checkbox" id="tp-ghosts">
|
||
Vorherige Schritte blass zeigen
|
||
</label>
|
||
</div>
|
||
</div>
|
||
</aside>
|
||
|
||
<!-- Schritt-Leiste der gewaehlten Taktik -->
|
||
<div id="step-bar" class="panel hidden">
|
||
<button type="button" id="sb-prev" title="Vorheriger Schritt (←)">◀</button>
|
||
<div class="sb-text">
|
||
<div class="sb-title" id="sb-title"></div>
|
||
<div class="sb-desc" id="sb-desc"></div>
|
||
</div>
|
||
<button type="button" id="sb-next" title="Nächster Schritt (→)">▶</button>
|
||
</div>
|
||
|
||
<!-- Zoom level indicator -->
|
||
<footer id="zoom-indicator" class="panel">
|
||
Zoom: <span id="zoom-level">2</span>
|
||
</footer>
|
||
</div>
|
||
|
||
<!-- Tooltip for marker hover -->
|
||
<div id="tooltip" class="hidden">
|
||
<div class="name"></div>
|
||
<div class="category"></div>
|
||
</div>
|
||
|
||
<!-- Eingabedialog fuer Namen, Beschreibungen und Beschriftungen -->
|
||
<div id="tactic-dialog" class="hidden">
|
||
<form class="panel" id="td-form">
|
||
<h3 id="td-title"></h3>
|
||
<div id="td-fields"></div>
|
||
<div class="td-actions">
|
||
<button type="submit" id="td-submit">Speichern</button>
|
||
<button type="button" id="td-cancel">Abbrechen</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
|
||
<div id="toast" class="hidden"></div>
|
||
</div>
|
||
|
||
<!-- Application scripts -->
|
||
<script src="js/config.js"></script>
|
||
<script src="js/models/MapData.js"></script>
|
||
<script src="js/services/TileService.js"></script>
|
||
<script src="js/services/MarkerService.js"></script>
|
||
<script src="js/views/MapView.js"></script>
|
||
<script src="js/controllers/MapController.js"></script>
|
||
<script src="js/services/TacticService.js"></script>
|
||
<script src="js/views/TacticLayer.js"></script>
|
||
<script src="js/controllers/TacticController.js"></script>
|
||
<script src="app.js"></script>
|
||
</body>
|
||
</html> |