diff --git a/src/main/webapp/js/mapModal.js b/src/main/webapp/js/mapModal.js index ad34e2b08dda801a77bd90498c757882ab8faeab..315d337d4da50a30c54b49c10ad4e975cbfc07e0 100644 --- a/src/main/webapp/js/mapModal.js +++ b/src/main/webapp/js/mapModal.js @@ -177,7 +177,8 @@ class MapModal { // Initialize the map centered on Norway this.map = map(this.mapContainerId).setView([latitude, longitude], zoomLevel); tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { - maxZoom: 19 + maxZoom: 19, + minZoom: 3 }).addTo(this.map); console.info("Create map " + this.mapContainerId + " centered on (" + latitude + "," + longitude + ") with points", this.geoJsonData ? this.geoJsonData.features : null);