fix: limit min zoom to 1 in viewer
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
parent
cc9abfde89
commit
d5dba53acb
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@
|
||||||
selectThreshold: 5
|
selectThreshold: 5
|
||||||
}));
|
}));
|
||||||
} else {
|
} else {
|
||||||
var map = L.map('map', { zoomControl: false });
|
var map = L.map('map', { minZoom: 1, zoomControl: false });
|
||||||
new L.Control.Zoom({ position: 'topright' }).addTo(map);
|
new L.Control.Zoom({ position: 'topright' }).addTo(map);
|
||||||
|
|
||||||
var tile_urls = [], tile_attribution, tile_minzoom, tile_maxzoom;
|
var tile_urls = [], tile_attribution, tile_minzoom, tile_maxzoom;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue