Karte: Zoom- und Scroll-Grenzen wie beim Monitor hinzugefügt

- 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) <noreply@anthropic.com>
Dieser Commit ist enthalten in:
Claude Code
2026-03-15 22:49:21 +01:00
Ursprung 9463ca87ea
Commit 5caf66dd1e

Datei anzeigen

@@ -658,12 +658,17 @@ var Lagebild = {
/* ===== TAB: KARTE (Pulse Markers) ===== */ /* ===== TAB: KARTE (Pulse Markers) ===== */
renderMap: function() { renderMap: function() {
if (this.map) { this.map.remove(); this.map = null; } 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) // Light map tiles (CartoDB Voyager)
L.tileLayer('https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png', { L.tileLayer('https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> &copy; <a href="https://carto.com/">CARTO</a>', attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> &copy; <a href="https://carto.com/">CARTO</a>',
maxZoom: 19, maxZoom: 19,
noWrap: true,
subdomains: 'abcd' subdomains: 'abcd'
}).addTo(this.map); }).addTo(this.map);