mirror of
https://github.com/System-End/daydream-phoenix.git
synced 2026-04-19 19:45:13 +00:00
Set max zoom on map
This commit is contained in:
parent
684e0e1d1c
commit
be796e058c
1 changed files with 4 additions and 1 deletions
|
|
@ -241,7 +241,10 @@
|
|||
document.head.appendChild(link);
|
||||
|
||||
// Initialize map
|
||||
map = L.map(mapContainer).setView([20, 0], 2);
|
||||
map = L.map(mapContainer, {
|
||||
minZoom: 2,
|
||||
maxZoom: 18
|
||||
}).setView([20, 0], 2);
|
||||
|
||||
// Add tile layer with custom styling
|
||||
L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue