viewer: allow zooming to level 5

Allow zooming in far enough so neighboring signs don't overlap.
This commit is contained in:
Matthias Schiffer 2024-01-06 23:46:32 +01:00
parent 7834315dd3
commit 43d7dc751e
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C

View file

@ -231,7 +231,7 @@ window.createMap = function () {
center: [-z, x], center: [-z, x],
zoom: zoom, zoom: zoom,
minZoom: -(mipmaps.length-1), minZoom: -(mipmaps.length-1),
maxZoom: 3, maxZoom: 5,
crs: L.CRS.Simple, crs: L.CRS.Simple,
maxBounds: [ maxBounds: [
[-512*(mipmaps[0].bounds.maxZ+1), 512*mipmaps[0].bounds.minX], [-512*(mipmaps[0].bounds.maxZ+1), 512*mipmaps[0].bounds.minX],