From a96d562a94acd8793142dacdf8a0a2f701db9da3 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Wed, 31 Jul 2013 21:56:16 +0100 Subject: [PATCH] add overall minZoom and maxZoom limits to the map --- code/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/boot.js b/code/boot.js index c7ee7ee6..d627e8aa 100644 --- a/code/boot.js +++ b/code/boot.js @@ -129,7 +129,7 @@ window.setupMap = function() { window.map = new L.Map('map', $.extend(getPosition(), - {zoomControl: window.showZoom} + {zoomControl: window.showZoom, minZoom: 1, maxZoom: 22} )); // add empty div to leaflet control areas - to force other leaflet controls to move around IITC UI elements