add overall minZoom and maxZoom limits to the map

This commit is contained in:
Jon Atkins 2013-07-31 21:56:16 +01:00
parent fe47f9b5dc
commit a96d562a94

View File

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