add max bounds for map
This commit is contained in:
parent
45c8efebe8
commit
5ee72f2ed8
@ -19,7 +19,11 @@ export function createMap(node, layerId, zoom, lat, lon){
|
|||||||
maxZoom: 12,
|
maxZoom: 12,
|
||||||
center: [lat, lon],
|
center: [lat, lon],
|
||||||
zoom: zoom,
|
zoom: zoom,
|
||||||
crs: SimpleCRS
|
crs: SimpleCRS,
|
||||||
|
maxBounds: L.latLngBounds(
|
||||||
|
L.latLng(-31000, -31000),
|
||||||
|
L.latLng(31000, 31000)
|
||||||
|
)
|
||||||
});
|
});
|
||||||
|
|
||||||
map.attributionControl.addAttribution('<a href="https://github.com/minetest-mapserver/mapserver">Minetest Mapserver</a>');
|
map.attributionControl.addAttribution('<a href="https://github.com/minetest-mapserver/mapserver">Minetest Mapserver</a>');
|
||||||
|
Loading…
Reference in New Issue
Block a user