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 %}