Skip to content
Snippets Groups Projects
Commit b18f8aa5 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

feat: Set minZoom of map to 3

parent 53dd9c22
Branches
No related tags found
1 merge request!191Add map module and Open-Meteo support
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment