Desktop after the artboard, the panels too: the rail dark like the topbar (the open panel's item on a lighter band with an accent edge), side panels 400 px, the map's buttons as white cards of 40 px; Route laid out as drawn — Reverse/Clear in the head, each point with a grip to drag it elsewhere, its letter (the same on the marker), name and role, the leg to it as a dashed line between, + Search / Saved point / My position chips, the totals as a card (distance, time, climb, arrival; descent and steepest grade under it), vehicle and avoid as chips, Directions and Reach folded with their counts, Save to library and Elevation profile at the bottom; On the map: the Online/Offline choice and the legend are the first group of the Overlays panel, renamed On the map — no Base map item or panel of its own. TODO: copy the cursor's position, the scale back over the map
CI / check (push) Successful in 24s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-12-03 09:20:27 +01:00
1 parent 258d35a7a1
commit d559f76b4a
6 files changed
+536 -142

No files matched your search

+50 -47
View File
@@ -47,26 +47,6 @@
<div class="trail-panel__body"></div>
</div>
<div id="basemap-panel" class="basemap-panel" hidden>
<div class="basemap-panel__header">
<strong>Base map</strong>
<button type="button" class="basemap-panel__close" aria-label="Close">&times;</button>
</div>
<div class="basemap-panel__list basemap-panel__sources">
<button type="button" class="basemap-panel__option" data-style="online">
<span>Online</span>
<span class="basemap-panel__check">&check;</span>
</button>
<button type="button" class="basemap-panel__option" data-style="offline">
<span>Offline</span>
<span class="basemap-panel__check">&check;</span>
</button>
</div>
<div class="basemap-panel__list">
<a class="basemap-panel__link" href="/symbols.html" target="_blank">Legend &amp; symbols ↗</a>
</div>
</div>
<div id="gpx-panel" class="gpx-panel" hidden<%= " data-sync-client" if sync_client %>>
<div class="gpx-panel__header">
<strong>Tracks &amp; Points</strong>
@@ -86,9 +66,27 @@
<div id="overlays-panel" class="basemap-panel" hidden>
<div class="basemap-panel__header">
<strong>Overlays</strong>
<strong>On the map</strong>
<button type="button" class="basemap-panel__close" aria-label="Close">&times;</button>
</div>
<!-- On the map (the Design canvas): the map itself first — online or the
offline one (LayerToggleControl, map.js) — then the overlays. -->
<div class="onthemap-map">
<div class="overlays-panel__group">Map</div>
<div class="basemap-panel__list basemap-panel__sources">
<button type="button" class="basemap-panel__option" data-style="online">
<span>Online</span>
<span class="basemap-panel__check">&check;</span>
</button>
<button type="button" class="basemap-panel__option" data-style="offline">
<span>Offline</span>
<span class="basemap-panel__check">&check;</span>
</button>
</div>
<div class="basemap-panel__list">
<a class="basemap-panel__link" href="/symbols.html" target="_blank">Legend &amp; symbols ↗</a>
</div>
</div>
<!-- Each item is a live layer refetched/toggled from its own source as
the map moves, not a file to add/remove/reorder — a plain on/off
list, no upload/new-folder actions the way Tracks & Points has.
@@ -133,39 +131,45 @@
</div>
</div>
<div id="route-panel" class="basemap-panel" hidden>
<div id="route-panel" class="basemap-panel route-panel" hidden>
<div class="basemap-panel__header">
<strong>Route</strong>
<!-- Icons are added by RoutePanelControl (public/js/icons.js). -->
<span class="route-panel__head-actions">
<button type="button" data-action="reverse">Reverse</button>
<button type="button" data-action="clear">Clear</button>
</span>
<button type="button" class="basemap-panel__close" aria-label="Close">&times;</button>
</div>
<!-- Filled by RoutePanelControl (public/js/route.js). -->
<!-- Filled by RoutePanelControl (public/js/route.js), laid out after the
Design canvas' Desktop artboard: the points with their legs, adding
one, the totals, the vehicle and what to avoid, the long parts folded,
saving at the bottom. -->
<div class="route-panel__body">
<!-- The order of the Design canvas' Desktop artboard: the points
with their legs, adding one, the totals, the vehicle and what to avoid,
then the long parts folded; editing the whole route at the bottom. -->
<p class="route-panel__editing" hidden></p>
<ol class="route-panel__points"></ol>
<!-- Icons are added by RoutePanelControl (public/js/icons.js). -->
<div class="route-panel__buttons">
<button type="button" data-action="position">My position</button>
<button type="button" data-action="saved-point">Saved point</button>
<div class="route-panel__add">
<button type="button" class="route-panel__chip route-panel__chip--add" data-action="search">+ Search</button>
<button type="button" class="route-panel__chip" data-action="saved-point">Saved point</button>
<button type="button" class="route-panel__chip" data-action="position">My position</button>
<span class="route-panel__hint">or click the map</span>
</div>
<div class="route-panel__saved" hidden>
<input type="search" placeholder="Search saved points" aria-label="Search saved points">
<ul></ul>
</div>
<p class="route-panel__hint">Add a point: below, "+" on a search result or a library point, or click the map; drag a marker to move it.</p>
<div class="route-panel__totals" hidden></div>
<p class="route-panel__summary"></p>
<ul class="route-panel__countries" hidden></ul>
<button type="button" class="route-panel__profile" hidden>Elevation profile</button>
<div class="route-panel__vehicle-row">
<label>Vehicle <select class="route-panel__vehicle-select"></select></label>
<button type="button" data-action="vehicle-edit" hidden>Edit</button>
<div class="route-panel__row route-panel__vehicle-row">
<span class="route-panel__label">Vehicle</span>
<select class="route-panel__vehicle-select route-panel__chip" aria-label="Vehicle"></select>
<button type="button" class="route-panel__chip" data-action="vehicle-edit" hidden>Edit</button>
</div>
<div class="route-panel__avoid">
Avoid
<label><input type="checkbox" name="tolls"> tolls</label>
<label><input type="checkbox" name="highways"> motorways</label>
<div class="route-panel__row route-panel__avoid">
<span class="route-panel__label">Avoid</span>
<label class="route-panel__chip"><input type="checkbox" name="tolls"> Tolls</label>
<label class="route-panel__chip"><input type="checkbox" name="highways"> Motorways</label>
</div>
<fieldset class="route-panel__vehicle" hidden>
<label class="route-panel__vehicle-name">Name <input type="text" name="name" maxlength="40"></label>
@@ -212,12 +216,12 @@
<button type="button" data-action="vehicle-add">+ New vehicle</button>
<button type="button" data-action="vehicle-delete">Delete</button>
</fieldset>
<details class="route-panel__directions" hidden>
<summary>Directions</summary>
<details class="route-panel__fold route-panel__directions" hidden>
<summary>Directions <span class="route-panel__fold-meta"></span></summary>
<ol></ol>
</details>
<details class="route-panel__fold">
<summary>Reach</summary>
<summary>Reach <span class="route-panel__fold-meta">30 min · 1 h · 2 h</span></summary>
<div class="route-panel__reach">
<span>Reach in</span>
<select>
@@ -231,11 +235,10 @@
</div>
<p class="route-panel__reach-status" hidden></p>
</details>
<div class="route-panel__buttons">
<button type="button" data-action="reverse">Reverse</button>
<button type="button" data-action="clear">Clear</button>
<button type="button" data-action="save" hidden>Save to library</button>
</div>
</div>
<div class="route-panel__footer">
<button type="button" class="route-panel__primary" data-action="save" hidden>Save to library</button>
<button type="button" class="route-panel__secondary route-panel__profile" hidden>Elevation profile</button>
</div>
</div>