1
0
forked from MTSR/mapserver

restrict map zoom to 11

This commit is contained in:
Thomas Rudin 2019-11-26 11:23:26 +01:00
parent 46ef2ec3b8
commit 04408acaa9

View File

@ -16,7 +16,7 @@ export function createMap(node, layerId, zoom, lat, lon){
const map = L.map(node, { const map = L.map(node, {
minZoom: 2, minZoom: 2,
maxZoom: 12, maxZoom: 11,
center: [lat, lon], center: [lat, lon],
zoom: zoom, zoom: zoom,
crs: SimpleCRS crs: SimpleCRS