diff --git a/meshview/lang/en.json b/meshview/lang/en.json index a4ed9d2..ed1ec18 100644 --- a/meshview/lang/en.json +++ b/meshview/lang/en.json @@ -109,9 +109,7 @@ "firmware": "Firmware:", "link_copied": "Link Copied!", "legend_traceroute": "Traceroute (with arrows)", - "legend_neighbor": "Neighbor", - "nearby_nodes_title": "Multiple nodes here", - "nearby_nodes_hint": "Select a node:" + "legend_neighbor": "Neighbor" }, diff --git a/meshview/lang/es.json b/meshview/lang/es.json index f444363..ee7371f 100644 --- a/meshview/lang/es.json +++ b/meshview/lang/es.json @@ -107,9 +107,7 @@ "firmware": "Firmware:", "link_copied": "¡Enlace copiado!", "legend_traceroute": "Ruta de traceroute (flechas de dirección)", - "legend_neighbor": "Vínculo de vecinos", - "nearby_nodes_title": "Varios nodos aquí", - "nearby_nodes_hint": "Selecciona un nodo:" + "legend_neighbor": "Vínculo de vecinos" }, "stats": { diff --git a/meshview/templates/map.html b/meshview/templates/map.html index 9e1c42e..73052fc 100644 --- a/meshview/templates/map.html +++ b/meshview/templates/map.html @@ -71,10 +71,6 @@ #unmapped-list li:last-child { border-bottom: none; } .unmapped-node { font-weight: 400; color: #000; } .unmapped-empty { color: #666; font-style: italic; } - .nearby-popup { font-size: 13px; } - .nearby-popup .nearby-list { margin: 6px 0 0; padding-left: 16px; } - .nearby-popup .nearby-list li { margin: 3px 0; } - .nearby-popup .nearby-distance { color: #666; font-size: 12px; } {% endblock %} @@ -205,58 +201,6 @@ function timeAgoFromUs(us){ return d>0?d+"d":h>0?h+"h":m>0?m+"m":s+"s"; } -const NEARBY_METERS = 20; - -function escapeHtml(text){ - return String(text) - .replace(/&/g, "&") - .replace(//g, ">") - .replace(/"/g, """); -} - -function getNearbyNodes(latlng){ - const nearby = []; - nodes.forEach(n=>{ - const marker = markerById[n.key]; - if(!marker) return; - const dist = map.distance(latlng, marker.getLatLng()); - if(dist <= NEARBY_METERS){ - nearby.push({ node: n, marker, dist }); - } - }); - nearby.sort((a,b)=>a.dist - b.dist); - return nearby; -} - -function openNearbyPopup(latlng, nearby){ - const items = nearby.map(item => { - const label = item.node.long_name || item.node.short_name || item.node.node_id; - return ` -