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; } }