Show live Horizon terrain and radar views in the web panel

This commit is contained in:
2026-12-02 18:52:41 +03:00
parent 7612d15963
commit 20fdb23b39
15 changed files with 818 additions and 120 deletions
+23 -11
View File
@@ -14,9 +14,12 @@
<body>
<main class="shell">
<header class="topbar">
<div><h1>AirDef</h1><p>Командный пункт</p></div>
<div class="brand"><h1>AirDef</h1><p>Командный пункт</p></div>
<div class="row">
<span id="connection" role="status">Подключение…</span>
<div class="connection-readout">
<span id="connection" role="status">Подключение…</span>
<span id="refresh-rate" hidden></span>
</div>
<button id="install" type="button" hidden>Установить</button>
<button id="logout" type="button" hidden>Отвязать</button>
</div>
@@ -38,29 +41,38 @@
<div class="workspace">
<section id="map-panel" class="map-column" aria-label="Карта боя">
<div class="map-tools">
<label>Ракурс<select id="perspective">
<div class="map-mode" aria-label="Подложка карты" role="group">
<button type="button" data-map-mode="map" aria-pressed="true">Рельеф</button>
<button type="button" data-map-mode="radar" aria-pressed="false">Радар</button>
</div>
<label class="inline-field" id="perspective-label" hidden>Ракурс<select id="perspective">
<option value="network">Картина игрока</option>
<option value="enemy" hidden>Что известно противнику</option>
<option value="truth" hidden>Истина · песочница</option>
</select></label>
<label class="inline-field" id="radar-site-label" hidden>Центр РЛС<select id="radar-site"></select></label>
<button type="button" id="return-live" hidden>К прямому эфиру</button>
<div class="map-actions">
<button type="button" id="zoom-in" aria-label="Приблизить">+</button>
<button type="button" id="zoom-out" aria-label="Отдалить">−</button>
<button type="button" id="fit">Вся карта</button>
<button type="button" id="fit">Все отметки</button>
<button type="button" id="player-center" hidden>К игроку</button>
</div>
</div>
<div class="map-wrap"><canvas id="map" aria-label="Карта игровых объектов"></canvas></div>
<div class="card legend" id="layer-options">
<label><input type="checkbox" data-layer="units" checked> □ Техника</label>
<label><input type="checkbox" data-layer="objects" checked> ◇ Объекты</label>
<label><input type="checkbox" data-layer="contacts" checked> ○ Контакты</label>
<label><input type="checkbox" data-layer="interceptors" checked> ▵ Перехватчики</label>
</div>
<p id="map-status" role="status"></p>
<footer class="map-footer">
<div class="legend" id="layer-options" aria-label="Слои карты" role="group">
<label><input type="checkbox" data-layer="units" checked> Техника</label>
<label><input type="checkbox" data-layer="objects" checked> Объекты</label>
<label><input type="checkbox" data-layer="contacts" checked> Контакты</label>
<label><input type="checkbox" data-layer="interceptors" checked> Перехватчики</label>
</div>
<div class="map-readout"><span id="map-source"></span><span id="map-status" role="status"></span></div>
</footer>
</section>
<aside class="side-panel">
<section id="live-panel" class="card">
<h2 class="panel-title">Объекты на карте</h2>
<div id="object-card" class="object-card" tabindex="-1"></div>
<label>Найти на карте<input id="object-search" type="search" autocomplete="off"></label>
<div id="object-list" class="list scroller" aria-label="Объекты на карте"></div>