From 5a3b0ef2c446e5e476d3ac346c71b298893940f2 Mon Sep 17 00:00:00 2001 From: Sutider Date: Sat, 16 May 2026 14:02:27 +0100 Subject: [PATCH] Change zoom min from 0% to 15%, HaggaBasin default 15% --- app/config.py | 2 +- templates/map.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/config.py b/app/config.py index 91d88d8..aa9435a 100644 --- a/app/config.py +++ b/app/config.py @@ -98,7 +98,7 @@ DEFAULTS = { }, 'flip_y': False, 'image_size': {'width': 8000, 'height': 8000}, - 'default_zoom': 0 + 'default_zoom': 0.15 } }, } diff --git a/templates/map.html b/templates/map.html index e2a7641..68249de 100644 --- a/templates/map.html +++ b/templates/map.html @@ -426,10 +426,10 @@

Zoom

- +
-
50%
+
15%
@@ -538,7 +538,7 @@ function setZoom(nextZoom, keepCenter = true) { const relativeX = oldZoom ? viewportCenterX / oldZoom : 0; const relativeY = oldZoom ? viewportCenterY / oldZoom : 0; - currentZoom = Math.min(3.5, Math.max(0, nextZoom)); + currentZoom = Math.min(3.5, Math.max(0.15, nextZoom)); els.canvas.style.width = `${map.width * currentZoom}px`; els.canvas.style.height = `${map.height * currentZoom}px`; els.zoomSlider.value = Math.round(currentZoom * 100);