diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-02 09:58:41 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-02 09:58:41 +0100 |
commit | 8ec33899d5b8ec3c049f8e4ffac7f71fd5b82dfc (patch) | |
tree | d82ac0b9e7aafd833b375448b609ccf023ed183a /viewer | |
parent | 9395b1f01dbcdf965ca17451e24f9e3858ab2a07 (diff) | |
download | MinedMap-8ec33899d5b8ec3c049f8e4ffac7f71fd5b82dfc.tar MinedMap-8ec33899d5b8ec3c049f8e4ffac7f71fd5b82dfc.zip |
Make the default zoom level 0 instead of 1
Diffstat (limited to 'viewer')
-rw-r--r-- | viewer/MinedMap.js | 10 |
1 files changed, 5 insertions, 5 deletions
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)], ], }); |