mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 17:54:30 +08:00
set min zoom level to leaflet control
This commit is contained in:
@@ -84,7 +84,8 @@ export function createLeafletMapInstance(mapHolder, mapContainer, options) {
|
|||||||
|
|
||||||
const tileLayer = leaflet.tileLayer(mapTileSource.tileUrlFormat, {
|
const tileLayer = leaflet.tileLayer(mapTileSource.tileUrlFormat, {
|
||||||
subdomains: mapTileSource.tileUrlSubDomains,
|
subdomains: mapTileSource.tileUrlSubDomains,
|
||||||
maxZoom: mapTileSource.maxZoom
|
maxZoom: mapTileSource.maxZoom,
|
||||||
|
minZoom: mapTileSource.minZoom
|
||||||
});
|
});
|
||||||
tileLayer.addTo(leafletInstance);
|
tileLayer.addTo(leafletInstance);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user