From 36c754c49b583d83ab2b0d3c07678bcf04dba166 Mon Sep 17 00:00:00 2001 From: Pablo Revilla Date: Mon, 28 Apr 2025 21:16:25 -0700 Subject: [PATCH] Added popup link to the maps --- meshview/templates/node.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/meshview/templates/node.html b/meshview/templates/node.html index 968044a..3c934b5 100644 --- a/meshview/templates/node.html +++ b/meshview/templates/node.html @@ -138,7 +138,7 @@ fillColor: 'red', fillOpacity: 0.5 }).addTo(markers) // Add to feature group - .bindTooltip(` + .bindPopup(` {{node.long_name}}
Short: {{node.short_name}}
Channel: {{node.channel}}
@@ -169,8 +169,9 @@ fillColor: 'blue', fillOpacity: 0.5 }).addTo(markers) // Add to feature group - .bindTooltip(` - Neighbour: [{{n.short_name}}] {{n.long_name}}
+ .bindPopup(` + {{n.long_name}}
+ {{n.short_name}}
SNR: {{n.snr}}
Distance: ${distanceMiles} miles
`, {permanent: false, direction: 'top', opacity: 0.9});