From 4dec958332a7eef9dd6268bb4f619d1477eeaa8e Mon Sep 17 00:00:00 2001 From: Peter W Date: Wed, 30 Nov 2016 16:08:39 -0800 Subject: [PATCH] make google maps less jumpy by disabling autopan Fixes #301 (in a less than ideal way -- see #301 for discussion) --- js/geo/M.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/geo/M.js b/js/geo/M.js index acef49b..2d26db7 100644 --- a/js/geo/M.js +++ b/js/geo/M.js @@ -273,7 +273,9 @@ app.M = (function() { // (see http://stackoverflow.com/a/4540249/1024811) } else { - gmapsInfowindow = new google.maps.InfoWindow(); + gmapsInfowindow = new google.maps.InfoWindow({ + disableAutoPan: true, // prevent jerky map panning (https://github.com/CodeforAustralia/school-finder/issues/301) + }); } gmapsInfowindow.setContent(this.marker.popup);