From 66123498d8c6399d2a2c460c355b6d8c6e7843b0 Mon Sep 17 00:00:00 2001 From: Ben Jones Date: Wed, 30 Sep 2015 22:45:35 +1300 Subject: [PATCH] Set map maxZoom to stop over-zoom when fitBounds called --- docroot/last/functions.js | 1 + 1 file changed, 1 insertion(+) diff --git a/docroot/last/functions.js b/docroot/last/functions.js index 51a0144..cd4aecf 100644 --- a/docroot/last/functions.js +++ b/docroot/last/functions.js @@ -11,6 +11,7 @@ function initialize() { mapOptions = { center: center, zoom: 3, // 9, + maxZoom: 18, // don't overzoom (should this be configurable?) mapTypeId: google.maps.MapTypeId.ROADMAP, scrollwheel: false, disableDefaultUI: false,