From 28adeb38fceebfa661d9a125aaead07c08cd9f39 Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Fri, 2 Feb 2024 02:46:59 +0100 Subject: [PATCH] =?UTF-8?q?Half=20Leaflet=E2=80=99s=20zoom=20delta?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With a map the size of ours, it always seemed like things were either too zoomed out or too zoomed in. --- web/static/map.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/static/map.js b/web/static/map.js index 73a3391..6ef4996 100644 --- a/web/static/map.js +++ b/web/static/map.js @@ -19,6 +19,7 @@ maxBounds: latLngBounds, maxBoundsViscosity: 1.0, zoomSnap: 0, + zoomDelta: 0.5, crs: L.CRS.Simple, }); map.fitBounds(latLngBounds);