From 5caf66dd1e07e1a1d9edc31201aba38e23bde576 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Sun, 15 Mar 2026 22:49:21 +0100 Subject: [PATCH] =?UTF-8?q?Karte:=20Zoom-=20und=20Scroll-Grenzen=20wie=20b?= =?UTF-8?q?eim=20Monitor=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - minZoom: 2 verhindert zu weites Auszoomen - maxBounds begrenzt Pan-Bereich auf Weltgrenzen - maxBoundsViscosity: 1.0 macht Grenzen fest - noWrap: true verhindert Kachel-Wiederholung Co-Authored-By: Claude Opus 4.6 (1M context) --- lagebild/lagebild.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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);