feat: Geräte/Stations-Marker werden nur für Systeme mit Allow=1 angezeigt

- Geräte mit Allow=0 in GisSystemStatic werden auf der Karte ausgeblendet
- Daten bleiben unverändert, nur die Anzeige/Zeichnung ist
This commit is contained in:
ISA
2025-07-28 16:21:48 +02:00
parent 9d7a696f91
commit 37aec649ee
7 changed files with 33 additions and 20 deletions

View File

@@ -26,6 +26,14 @@ export const createAndSetDevices = async (
measurements,
oms // 🔁 OMS für Spiderfy hinzugefügt
) => {
// Prüfe, ob das System erlaubt ist (Allow === 1)
const systemConfig = Array.isArray(GisSystemStatic)
? GisSystemStatic.find(sys => sys.IdSystem === systemId)
: null;
if (!systemConfig || systemConfig.Allow !== 1) {
setMarkersFunction([]);
return;
}
const basePath = process.env.NEXT_PUBLIC_BASE_PATH || "";
try {