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:
@@ -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: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> © <a href="https://carto.com/">CARTO</a>',
|
||||
maxZoom: 19,
|
||||
noWrap: true,
|
||||
subdomains: 'abcd'
|
||||
}).addTo(this.map);
|
||||
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren