From d0799f44ec5f32f573f5492c000eb2bfc96eda14 Mon Sep 17 00:00:00 2001 From: Pablo Revilla Date: Thu, 28 Aug 2025 15:32:52 -0700 Subject: [PATCH] Added the traceroute and neighbours to the map --- meshview/templates/map.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshview/templates/map.html b/meshview/templates/map.html index e284b7d..6b8aa53 100644 --- a/meshview/templates/map.html +++ b/meshview/templates/map.html @@ -60,8 +60,8 @@ var markerById = {}; var nodes = [ {% for node in nodes %} { - lat: {{ (node.last_lat / 10**7)|round(7) }}, - long: {{ (node.last_long / 10**7)|round(7) if node.last_long is not none else "null" }}, + lat: {{ ((node.last_lat / 10**7) + (range(-9,9) | random) / 30000) | round(7) }}, + long: {{ ((node.last_long / 10**7) + (range(-9,9) | random) / 30000) |round(7) if node.last_long is not none else "null" }}, long_name: {{ (node.long_name or "") | tojson }}, short_name: {{ (node.short_name or "") | tojson }}, channel: {{ (node.channel or "") | tojson }},