From 8ec33899d5b8ec3c049f8e4ffac7f71fd5b82dfc Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 2 Feb 2015 09:58:41 +0100 Subject: Make the default zoom level 0 instead of 1 --- viewer/MinedMap.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'viewer') diff --git a/viewer/MinedMap.js b/viewer/MinedMap.js index ecb226d..577421b 100644 --- a/viewer/MinedMap.js +++ b/viewer/MinedMap.js @@ -67,13 +67,13 @@ window.createMap = function () { var map = L.map('map', { center: [0, 0], - zoom: 1, - minZoom: 1, - maxZoom: 1, + zoom: 0, + minZoom: 0, + maxZoom: 0, crs: L.CRS.Simple, maxBounds: [ - [-256*(info.info.maxZ+1), 256*info.info.minX], - [-256*info.info.minZ, 256*(info.info.maxX+1)], + [-512*(info.info.maxZ+1), 512*info.info.minX], + [-512*info.info.minZ, 512*(info.info.maxX+1)], ], }); -- cgit v1.2.3