Added the traceroute and neighbours to the map

This commit is contained in:
Pablo Revilla
2025-08-27 11:25:26 -07:00
parent f72e5178b2
commit 93b7276b9e
2 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ async function pollPackets() {
console.error(err);
}
}
1
loadNodes().then(()=>{ setInterval(pollPackets,1000); });
</script>
+8 -2
View File
@@ -124,8 +124,14 @@
if (node.last_update) popupContent += `<b>Last seen:</b> ${timeAgo(node.last_update)}<br>`;
if (node.firmware) popupContent += `<b>Firmware:</b> ${node.firmware}<br>`;
var marker = L.circleMarker([node.lat, node.long], markerOptions).bindPopup(popupContent);
marker.addTo(map);
var marker = L.circleMarker([node.lat, node.long], markerOptions).addTo(map);
marker.on('click', function() {
marker.bindPopup(popupContent).openPopup();
setTimeout(() => {
marker.closePopup();
}, 2000); // 2000 ms = 3 seconds
});
if (!markers[category]) markers[category] = [];
markers[category].push({ marker, isRouter });