Merge pull request #47 from sumnerboy12/master

Set map maxZoom to stop over-zoom when fitBounds called
This commit is contained in:
JP Mens
2015-09-30 11:48:33 +02:00

View File

@@ -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,