From c287ab67a393e9984f9fc20a834dd7f73287e1c3 Mon Sep 17 00:00:00 2001 From: Mathieu Moran Date: Mon, 10 Aug 2026 05:42:04 -0400 Subject: [PATCH] fix: map zoom limits configurable per-deployment via data attributes Pi offline tiles only cover zoom 8-15; OSM live tiles support 0-19. history.js now reads data-min-zoom/data-max-zoom from the #history-map div instead of hardcoding 3/19. Pi template caps to 8-15 (prevents blank tiles at extreme zooms), server template allows full 3-19 OSM range. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- server/templates/history.html | 3 ++- static/js/history.js | 8 +++++--- templates/history.html | 3 ++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/server/templates/history.html b/server/templates/history.html index 065ae5e..25f57b8 100644 --- a/server/templates/history.html +++ b/server/templates/history.html @@ -56,7 +56,8 @@
+ data-tile-attrib="© OpenStreetMap contributors" + data-min-zoom="3" data-max-zoom="19">
-
+