Skip to content

Commit ca831af

Browse files
Mark JessopMark Jessop
authored andcommitted
Tweak on-click zoom level.
1 parent 075bde3 commit ca831af

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)