OSINT Monitor Toggle entfernt — automatische Integration
Kein separater OSINT Monitor Layer mehr im Panel. Bei Lage-Auswahl im Header passiert automatisch: 1. Monitor-Standorte werden auf dem Globus angezeigt (rote Punkte) 2. Katastrophen-Klick zeigt passende Monitor-Artikel zum Ort 3. Keine Lage = keine Monitor-Daten Flow: Lage waehlen -> Monitor-Daten laden -> Katastrophen zeigen ortsspezifische Artikel beim Klick.
Dieser Commit ist enthalten in:
@@ -28,10 +28,15 @@ const DisastersLayer = {
|
||||
|
||||
_fetchMonitorContext() {
|
||||
var self = this;
|
||||
var lageId = (typeof Globe !== 'undefined' && Globe._currentLageId) ? Globe._currentLageId : '';
|
||||
fetch('/api/monitor-feed' + (lageId ? '?incident_id=' + lageId : ''))
|
||||
var lageId = (typeof Globe !== 'undefined') ? Globe._currentLageId : null;
|
||||
if (!lageId) { self._monitorData = null; return; }
|
||||
fetch('/api/monitor-feed?incident_id=' + lageId)
|
||||
.then(function(r) { return r.json(); })
|
||||
.then(function(data) { self._monitorData = data; })
|
||||
.then(function(data) {
|
||||
self._monitorData = data;
|
||||
// Katastrophen neu rendern mit Monitor-Kontext
|
||||
if (self._dataSource) self._fetch();
|
||||
})
|
||||
.catch(function() {});
|
||||
},
|
||||
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren