mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-04 17:23:33 +01:00
Make the default zoom level 0 instead of 1
This commit is contained in:
parent
9395b1f01d
commit
8ec33899d5
1 changed files with 5 additions and 5 deletions
|
@ -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)],
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue