diff --git a/lagebild/lagebild.js b/lagebild/lagebild.js index 8a5876a..208ad31 100644 --- a/lagebild/lagebild.js +++ b/lagebild/lagebild.js @@ -658,12 +658,17 @@ var Lagebild = { /* ===== TAB: KARTE (Pulse Markers) ===== */ renderMap: function() { if (this.map) { this.map.remove(); this.map = null; } - this.map = L.map('map-container').setView([33.0, 48.0], 5); + this.map = L.map('map-container', { + minZoom: 2, + maxBounds: [[-85, -180], [85, 180]], + maxBoundsViscosity: 1.0 + }).setView([33.0, 48.0], 5); // Light map tiles (CartoDB Voyager) L.tileLayer('https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png', { attribution: '© OpenStreetMap © CARTO', maxZoom: 19, + noWrap: true, subdomains: 'abcd' }).addTo(this.map);