From 852857412bcaf07292b1b5c2f2dda9b84c77a5f6 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 26 Oct 2023 22:40:54 +0200 Subject: [PATCH] Increase maxZoomLimit to 24 Even if this limit is not a hard limit, just a warning, we now have been proven some maps using custom backgrounds use zooms greater than 20. Eg. this maps which allows zoom until 23: https://umap.openstreetmap.fr/fr/map/cimetiere-asnieres-la-giraud_716488 --- umap/static/umap/js/umap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/static/umap/js/umap.js b/umap/static/umap/js/umap.js index b923e2b3..e2c9f716 100644 --- a/umap/static/umap/js/umap.js +++ b/umap/static/umap/js/umap.js @@ -14,7 +14,7 @@ L.Map.mergeOptions({ default_popupContentTemplate: '# {name}\n{description}', default_interactive: true, default_labelDirection: 'auto', - maxZoomLimit: 20, + maxZoomLimit: 24, attributionControl: false, editMode: 'advanced', embedControl: true,