From 70eb007ddd94b3e9bb9f2fdace69aa6862e22bf7 Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Fri, 2 Feb 2024 02:45:47 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20Leaflet=E2=80=99s=20maxBounds=20and=20?= =?UTF-8?q?its=20viscosity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They were commented out by error: when changing the SVG handling code, had to “look for” a stray polygon that was outside the image’s bounded area. --- web/static/map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/static/map.js b/web/static/map.js index b3d9f35..73a3391 100644 --- a/web/static/map.js +++ b/web/static/map.js @@ -16,8 +16,8 @@ maxZoom: 2, zoom: -1, scrollWheelZoom: false, - //maxBounds: latLngBounds, - //maxBoundsViscosity: 1.0, + maxBounds: latLngBounds, + maxBoundsViscosity: 1.0, zoomSnap: 0, crs: L.CRS.Simple, });