From 94d23ed5a93b389a362170c0b73ec22edb9bd8cd Mon Sep 17 00:00:00 2001 From: Pablo Revilla Date: Mon, 28 Apr 2025 21:36:20 -0700 Subject: [PATCH] Added popup link to the maps --- meshview/templates/packet_details.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/meshview/templates/packet_details.html b/meshview/templates/packet_details.html index 33a770f..b5e5835 100644 --- a/meshview/templates/packet_details.html +++ b/meshview/templates/packet_details.html @@ -55,15 +55,15 @@ var fromNodeLatLng = L.latLng({{ from_node_cord | tojson }}); var fromNode = L.circleMarker(fromNodeLatLng, { - radius: 10, + radius: 8, color: 'red', weight: 1, fillColor: 'red', - fillOpacity: 0.4 + fillOpacity: 1 }).addTo(markers); // Add tooltip for the from_node_cord - fromNode.bindTooltip(` + fromNode.bindPopup(` Sent by: {{node.long_name}}
Short: {{node.short_name}}
Channel: {{node.channel}}
@@ -101,8 +101,9 @@ node.setZIndexOffset({{u.hops}}*-1); // Add a tooltip with node details and distance - node.bindTooltip(` - Seen by: [{{ u.short_name }}] {{ u.long_name }}
+ node.bindPopup(` + Heard by: {{u.long_name}}/b>
+ [{{ u.short_name }}]
Hops: {{ u.hops }}
SNR: {{ u.snr }}
RSSI: {{ u.rssi }}