Skip to content

Commit 58a0fbb

Browse files
authored
Merge pull request #59 from darksidelemm/main
Tweak on-click zoom level.
2 parents a7b6377 + ca831af commit 58a0fbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/tracker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -825,10 +825,10 @@ function panTo(vcallsign) {
825825
update_lookangles(vcallsign);
826826

827827
// pan map
828-
if (map.getZoom() > 10) {
828+
if (map.getZoom() > 8) {
829829
map.setView(vehicles[vcallsign].marker.getLatLng());
830830
} else {
831-
map.setView(vehicles[vcallsign].marker.getLatLng(), 10);
831+
map.setView(vehicles[vcallsign].marker.getLatLng(), 8);
832832
}
833833
}
834834

0 commit comments

Comments
 (0)