viewer: fix maxNativeZoom in Retina mode

Fixes: #8
This commit is contained in:
Matthias Schiffer 2020-06-28 17:24:05 +02:00
parent 6a160142ed
commit e5a15beddb
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C

View file

@ -9,7 +9,7 @@ var MinedMapLayer = L.GridLayer.extend({
this.options.attribution = 'Generated by <a href="https://github.com/NeoRaider/MinedMap">MinedMap</a>'; this.options.attribution = 'Generated by <a href="https://github.com/NeoRaider/MinedMap">MinedMap</a>';
this.options.minZoom = -(mipmaps.length-1 + this.zoomOffset); this.options.minZoom = -(mipmaps.length-1 + this.zoomOffset);
this.options.maxNativeZoom = 0; this.options.maxNativeZoom = -this.zoomOffset;
// for https://github.com/Leaflet/Leaflet/issues/137 // for https://github.com/Leaflet/Leaflet/issues/137
if (!L.Browser.android) { if (!L.Browser.android) {