From d3537ec1396654f4fcdf475bed1b8e464e415257 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Thu, 22 Jan 2015 16:14:32 +0000 Subject: [PATCH] When first following a plane, zoom in if we are zoomed far out. --- public_html/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public_html/script.js b/public_html/script.js index 372d1c1..3faa708 100644 --- a/public_html/script.js +++ b/public_html/script.js @@ -852,6 +852,8 @@ function selectPlaneByHex(hex) { function toggleFollowSelected() { FollowSelected = !FollowSelected; refreshSelected(); + if (FollowSelected && GoogleMap.getZoom() < 8) + GoogleMap.setZoom(8); } function resetMap() {