From e5a15beddb8a86c3e43ed979113e73bda5435543 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 28 Jun 2020 17:24:05 +0200 Subject: [PATCH] viewer: fix maxNativeZoom in Retina mode Fixes: #8 --- viewer/MinedMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viewer/MinedMap.js b/viewer/MinedMap.js index 56011c9..dcd8556 100644 --- a/viewer/MinedMap.js +++ b/viewer/MinedMap.js @@ -9,7 +9,7 @@ var MinedMapLayer = L.GridLayer.extend({ this.options.attribution = 'Generated by MinedMap'; 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 if (!L.Browser.android) {