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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user