Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Tweak on-click zoom level.
  • Loading branch information
Mark Jessop authored and Mark Jessop committed Sep 25, 2022
commit ca831af7667e9b637467b627891dba23ea5fb51a
4 changes: 2 additions & 2 deletions js/tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down