diff --git a/meshview/templates/packet.html b/meshview/templates/packet.html index 578e266..acea412 100644 --- a/meshview/templates/packet.html +++ b/meshview/templates/packet.html @@ -443,7 +443,7 @@ seenTableBody.innerHTML = Object.keys(hopGroups) if (srcLat && srcLon) { distanceKm = haversine(srcLat, srcLon, rlat, rlon); } - + const distanceMi = distanceKm !== null ? distanceKm * 0.621371 : null; const color = hopColor(hopKey); const marker = L.marker([rlat,rlon],{ @@ -477,9 +477,11 @@ seenTableBody.innerHTML = Object.keys(hopGroups) Channel: ${s.channel ?? "—"}
${ distanceKm !== null - ? `Distance: ${distanceKm.toFixed(1)} km
` + ? `Distance: + ${distanceKm.toFixed(1)} km / ${distanceMi.toFixed(1)} mi
` : "" } +
Signal