From 9faa2270d797710f8b104ce2fb0026cb7a8e0b6b Mon Sep 17 00:00:00 2001 From: Stream Date: Wed, 6 May 2026 00:30:02 +0300 Subject: [PATCH] auto-sync: 2026-05-06 00:30:01 --- tasks/enduro-trails/prototype/static/app.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tasks/enduro-trails/prototype/static/app.js b/tasks/enduro-trails/prototype/static/app.js index 319e744..573c5e5 100644 --- a/tasks/enduro-trails/prototype/static/app.js +++ b/tasks/enduro-trails/prototype/static/app.js @@ -552,7 +552,6 @@ function formatSegmentDist(m) { // First waypoint snaps to geometry[0], last to geometry[n-1] — guarantees sum == full route length. function getRouteSegmentDistances() { const route = routeResults[activeRouteIdx]; - console.log('[seg] route=', route ? 'ok' : 'null', 'geometry=', route?.geometry ? 'ok' : 'null', 'coords=', route?.geometry?.coordinates?.length); if (!route || !route.geometry || !route.geometry.coordinates) return null; const coords = route.geometry.coordinates; // [[lon, lat], ...] @@ -613,7 +612,6 @@ async function renderWaypointsList() { const segDists = (routeResults.length > 0 && activeRouteIdx >= 0) ? getRouteSegmentDistances() : null; - console.log('[wl] routeResults.length=', routeResults.length, 'activeRouteIdx=', activeRouteIdx, 'segDists=', segDists); let html = routeWaypoints.map((wp, i) => { const isStart = i === 0; @@ -621,8 +619,8 @@ async function renderWaypointsList() { const label = isStart ? 'S' : isEnd ? 'F' : String(i); const color = isStart ? '#2EA043' : isEnd ? '#FF3B1F' : '#0066ff'; const coordText = `${wp.lat.toFixed(3)}, ${wp.lon.toFixed(3)}`; - const distStr = i > 0 && segDists ? formatSegmentDist(segDists[i]) + ' ✓' : - i > 0 ? formatSegmentDist(haversineM(routeWaypoints[i-1], wp)) + ' ~' : ''; + const distStr = i > 0 && segDists ? formatSegmentDist(segDists[i]) : + i > 0 ? formatSegmentDist(haversineM(routeWaypoints[i-1], wp)) : ''; return `
${waypointPinSvg(label, color)}