diff --git a/streetup/controls/static/controls/controls_detail.js b/streetup/controls/static/controls/controls_detail.js index a812b06..1b789dd 100644 --- a/streetup/controls/static/controls/controls_detail.js +++ b/streetup/controls/static/controls/controls_detail.js @@ -42,7 +42,8 @@ map = new maplibregl.Map({ center: [4.3572, 50.8477], zoom: 11, minzoom: 4, - maxzoom: 24 + maxzoom: 24, + maxBounds: null }); // Ajouter un marqueur au clic diff --git a/streetup/controls/static/controls/remarks_form.js b/streetup/controls/static/controls/remarks_form.js index f5ce151..b72aa0f 100644 --- a/streetup/controls/static/controls/remarks_form.js +++ b/streetup/controls/static/controls/remarks_form.js @@ -416,7 +416,8 @@ map = new maplibregl.Map({ center: [4.3572, 50.8477], zoom: 11, minZoom: 9, - maxZoom: 24 + maxZoom: 24, + maxBounds: null }); diff --git a/streetup/mobile/templates/mobile/mobile_base.html b/streetup/mobile/templates/mobile/mobile_base.html index eddc2c3..40c9c85 100644 --- a/streetup/mobile/templates/mobile/mobile_base.html +++ b/streetup/mobile/templates/mobile/mobile_base.html @@ -176,7 +176,7 @@ options.zoom = window.MAP_DEFAULT_ZOOM; } - if (!options.maxBounds && window.MAP_DEFAULT_EXTENT) { + if (options.maxBounds === undefined && window.MAP_DEFAULT_EXTENT) { options.maxBounds = window.MAP_DEFAULT_EXTENT; } diff --git a/streetup/observations/templates/observations/observation_form.html b/streetup/observations/templates/observations/observation_form.html index 3886989..f6e5b2c 100644 --- a/streetup/observations/templates/observations/observation_form.html +++ b/streetup/observations/templates/observations/observation_form.html @@ -2005,7 +2005,7 @@ options.zoom = window.MAP_DEFAULT_ZOOM; } - if (!options.maxBounds && window.MAP_DEFAULT_EXTENT) { + if (options.maxBounds === undefined && window.MAP_DEFAULT_EXTENT) { options.maxBounds = window.MAP_DEFAULT_EXTENT; } diff --git a/streetup/templates/base.html b/streetup/templates/base.html index 2e89ec7..7f8a8bd 100644 --- a/streetup/templates/base.html +++ b/streetup/templates/base.html @@ -62,7 +62,7 @@ options.zoom = window.MAP_DEFAULT_ZOOM; } - if (!options.maxBounds && window.MAP_DEFAULT_EXTENT) { + if (options.maxBounds === undefined && window.MAP_DEFAULT_EXTENT) { options.maxBounds = window.MAP_DEFAULT_EXTENT; }