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