From 4127ef4951e35f8ec97eec996b258f32a954add1 Mon Sep 17 00:00:00 2001 From: Jason Michalski Date: Sat, 17 Aug 2024 19:25:40 -0700 Subject: [PATCH] Disable fitBounds animation. --- meshview/templates/packet_details.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meshview/templates/packet_details.html b/meshview/templates/packet_details.html index dca2fca..3de8ebc 100644 --- a/meshview/templates/packet_details.html +++ b/meshview/templates/packet_details.html @@ -51,10 +51,10 @@ iconSize: [32, 32], }); {% for u in uplinked_nodes %} - var m = L.marker([{{u.lat}}, {{u.long}}], {icon: radioTower}); - m.bindPopup('[{{u.short_name}}] {{u.long_name}}
Hops: {{u.hops}}
SNR: {{u.snr}}
RSSI: {{u.rssi}}'); - m.addTo(markers); - details_map.fitBounds(markers.getBounds().pad(.7)); + L.marker([{{u.lat}}, {{u.long}}], {icon: radioTower}) + .bindPopup('[{{u.short_name}}] {{u.long_name}}
Hops: {{u.hops}}
SNR: {{u.snr}}
RSSI: {{u.rssi}}') + .addTo(markers); + details_map.fitBounds(markers.getBounds().pad(.03), {animate: false}); {% endfor %} {% endif %}