From f4002def4ca3fd43adfc2a28549f5a86d19d0116 Mon Sep 17 00:00:00 2001 From: you Date: Sun, 22 Mar 2026 23:50:07 +0000 Subject: [PATCH] Debug: log renderDetail GPS anchor and resolved hops --- public/index.html | 2 +- public/packets.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/index.html b/public/index.html index af11d1fb..e5220f02 100644 --- a/public/index.html +++ b/public/index.html @@ -86,7 +86,7 @@ - + diff --git a/public/packets.js b/public/packets.js index deb1d2bb..6587a0c9 100644 --- a/public/packets.js +++ b/public/packets.js @@ -1105,10 +1105,11 @@ await ensureHopResolver(); const senderLat = decoded.lat != null ? decoded.lat : (decoded.latitude || null); const senderLon = decoded.lon != null ? decoded.lon : (decoded.longitude || null); + console.log('[renderDetail] GPS anchor:', senderLat, senderLon, 'observer:', pkt.observer_id?.slice(0,12)); // Always re-resolve for detail view — list view may have cached without anchor const fresh = HopResolver.resolve(pathHops, senderLat, senderLon, null, null, pkt.observer_id); - // Overwrite cache with better results for (const [k, v] of Object.entries(fresh || {})) { + console.log('[renderDetail] hop', k, '→', v.name, 'ambig:', v.ambiguous, 'conflicts:', v.conflicts?.length); hopNameCache[k] = v; } }