Skip to content

Commit

Permalink
Limit min max zoom to fit to the screen when zoom out is clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
MSDrao committed Dec 15, 2024
1 parent ca9f7c1 commit 1256e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/TheLeafletMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ onUpdated(() => {
})
onMounted(async () => {
let leaflet = L.map('mapContainer').setView([0, 11], 2);
let leaflet = L.map('mapContainer', {minZoom: 2}).setView([0, 11], 2);
mapStore.leaflet = leaflet;
let layerGroup = new L.LayerGroup();
mapStore.layerGroup = layerGroup;
Expand Down

0 comments on commit 1256e7e

Please sign in to comment.