Route card: put walk/taxi on the leg popup; make the drop-off ride hoverable
Two fixes from the review of the rail rework: - The airport→hotel "drop bags" ride was a special case: it was a structural row with no map line and no hover. It now draws a real polyline (airport → hotel) in renderMap and the rail row highlights it on hover / flies to it on click, exactly like every other route. - The walk/taxi toggle no longer sits as a permanent "Getting around" block at the top of the rail. It lives on the route card — the popup a leg click opens (#l3-mode). It shows only for on-ground legs (a flight / train+bus segment has a fixed mode); flipping it re-estimates every on-ground leg and re-binds the open editor to the new leg (l3.idx). The L3 waypoint-drag handler now routes at the leg's actual mode instead of hardcoding 'foot'. Verified: CDP — drop-off line drawn + hover highlights then restores (weight 5→7→5); clicking a leg opens the card with the toggle; Taxi flips travelMode + shortens legs, card stays open + rebound (idx preserved); back to foot restores; top toggle gone; 0 JS exceptions. Structural suite 13/13 still green.
This commit is contained in:
+7
-1
@@ -74,7 +74,6 @@
|
||||
<div id="app" class="hidden">
|
||||
<aside id="rail">
|
||||
<div id="daystrip"></div>
|
||||
<div class="rail-block" id="transit-block"></div>
|
||||
<div class="rail-block" id="sugg-block"></div>
|
||||
<div id="rail-body"></div>
|
||||
<div class="rail-foot" id="rail-foot">
|
||||
@@ -105,6 +104,13 @@
|
||||
<div id="l3-editor" class="hidden">
|
||||
<div class="l3-title" id="l3-title">Route</div>
|
||||
<div class="l3-hint">Drag the ● waypoint (or the endpoints) — the duration updates live; the local router re-routes on the road network when the area is covered.</div>
|
||||
<div class="l3-mode hidden" id="l3-mode">
|
||||
<span class="mode-label">getting around</span>
|
||||
<div class="mode-toggle">
|
||||
<button class="mode-btn" id="l3-foot" title="On foot between stops">🚶 Walk</button>
|
||||
<button class="mode-btn" id="l3-car" title="By taxi between stops">🚗 Taxi</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="l3-time">leg time: <span id="l3-time" class="tc t-computed">…</span></div>
|
||||
<button class="btn ghost small" id="l3-close">Done</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user