Fix: GEOINT Satellitenkarte grau - Scanline-Overlay und Tile-Layer-Handling korrigiert
- ::after Pseudo-Element entfernt (ueberdeckte Tiles) - position:relative vom map-container entfernt - Tile-Layer Entfernung in separatem Array (vermeidet eachLayer-Mutation) - pane:overlayPane von Labels entfernt - bringToBack() auf Satellite-Layer
Dieser Commit ist enthalten in:
@@ -70,19 +70,24 @@ const GEOINT = {
|
||||
// -----------------------------------------------------------------------
|
||||
_applySatelliteTiles(map) {
|
||||
if (!map) return;
|
||||
// Bestehende Tile-Layer entfernen
|
||||
// Bestehende Tile-Layer in separatem Array sammeln, dann entfernen
|
||||
var toRemove = [];
|
||||
map.eachLayer(function(layer) {
|
||||
if (layer instanceof L.TileLayer) map.removeLayer(layer);
|
||||
if (layer instanceof L.TileLayer) toRemove.push(layer);
|
||||
});
|
||||
toRemove.forEach(function(layer) { map.removeLayer(layer); });
|
||||
// Esri World Imagery
|
||||
this._satTileLayer = L.tileLayer(
|
||||
'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}',
|
||||
{ attribution: '© Esri — Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, GIS User Community',
|
||||
maxZoom: 18, noWrap: true }
|
||||
{ attribution: 'Tiles © Esri', maxZoom: 19, noWrap: true }
|
||||
).addTo(map);
|
||||
// Ortsnamen-Overlay
|
||||
this._satLabelLayer = L.tileLayer(
|
||||
'https://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer/tile/{z}/{y}/{x}',
|
||||
{ maxZoom: 18, noWrap: true, pane: 'overlayPane' }
|
||||
{ maxZoom: 19, noWrap: true }
|
||||
).addTo(map);
|
||||
// Satellite nach hinten, damit Marker darueber liegen
|
||||
if (this._satTileLayer.bringToBack) this._satTileLayer.bringToBack();
|
||||
},
|
||||
|
||||
_restoreOsmTiles(map) {
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren