Make the default zoom level 0 instead of 1

This commit is contained in:
Matthias Schiffer 2015-02-02 09:58:41 +01:00
parent 9395b1f01d
commit 8ec33899d5

View file

@ -67,13 +67,13 @@ window.createMap = function () {
var map = L.map('map', { var map = L.map('map', {
center: [0, 0], center: [0, 0],
zoom: 1, zoom: 0,
minZoom: 1, minZoom: 0,
maxZoom: 1, maxZoom: 0,
crs: L.CRS.Simple, crs: L.CRS.Simple,
maxBounds: [ maxBounds: [
[-256*(info.info.maxZ+1), 256*info.info.minX], [-512*(info.info.maxZ+1), 512*info.info.minX],
[-256*info.info.minZ, 256*(info.info.maxX+1)], [-512*info.info.minZ, 512*(info.info.maxX+1)],
], ],
}); });