From ca831af7667e9b637467b627891dba23ea5fb51a Mon Sep 17 00:00:00 2001 From: Mark Jessop Date: Sun, 25 Sep 2022 17:27:47 +0930 Subject: [PATCH] Tweak on-click zoom level. --- js/tracker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/tracker.js b/js/tracker.js index 82214c9..74cba4c 100644 --- a/js/tracker.js +++ b/js/tracker.js @@ -825,10 +825,10 @@ function panTo(vcallsign) { update_lookangles(vcallsign); // pan map - if (map.getZoom() > 10) { + if (map.getZoom() > 8) { map.setView(vehicles[vcallsign].marker.getLatLng()); } else { - map.setView(vehicles[vcallsign].marker.getLatLng(), 10); + map.setView(vehicles[vcallsign].marker.getLatLng(), 8); } }