|
|
|
|
@@ -133,7 +133,6 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|
|
|
|
const setSelectedPoi = useSetRecoilState(selectedPoiState);
|
|
|
|
|
const [showPoiUpdateModal, setShowPoiUpdateModal] = useState(false);
|
|
|
|
|
const [currentPoiData, setCurrentPoiData] = useState(null);
|
|
|
|
|
|
|
|
|
|
const [showVersionInfoModal, setShowVersionInfoModal] = useState(false);
|
|
|
|
|
const zoomTrigger = useRecoilValue(zoomTriggerState);
|
|
|
|
|
const [gisSystemStaticLoaded, setGisSystemStaticLoaded] = useState(false);
|
|
|
|
|
@@ -144,7 +143,6 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|
|
|
|
const mapRef = useRef(null); // Referenz auf das DIV-Element der Karte
|
|
|
|
|
const [map, setMap] = useState(null); // Zustand der Karteninstanz
|
|
|
|
|
const [oms, setOms] = useState(null); // State für OMS-Instanz
|
|
|
|
|
//const [GisStationsStaticDistrict, setGisStationsStaticDistrict] = useRecoilState(gisStationsStaticDistrictState);
|
|
|
|
|
const GisStationsStaticDistrict = useSelector(selectGisStationsStaticDistrict);
|
|
|
|
|
const [GisStationsStatusDistrict, setGisStationsStatusDistrict] = useState([]); // Zustand für Statusdaten
|
|
|
|
|
const [GisStationsMeasurements, setGisStationsMeasurements] = useState([]); // Zustand für Messdaten
|
|
|
|
|
@@ -156,7 +154,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|
|
|
|
const mapGisSystemStaticUrl = config.mapGisSystemStaticUrl;
|
|
|
|
|
const webserviceGisLinesStatusUrl = config.webserviceGisLinesStatusUrl;
|
|
|
|
|
//console.log("priorityConfig in MapComponent1: ", priorityConfig);
|
|
|
|
|
|
|
|
|
|
//-----------------------------------------
|
|
|
|
|
const [gmaMarkers, setGmaMarkers] = useState([]); //--------------------station.System === 11 alle sind untetschiedlich Nummern
|
|
|
|
|
const [talasMarkers, setTalasMarkers] = useState([]);
|
|
|
|
|
const [eciMarkers, setEciMarkers] = useState([]);
|
|
|
|
|
@@ -173,7 +171,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|
|
|
|
const [ulafMarkers, setUlafMarkers] = useState([]);
|
|
|
|
|
const [sonstigeMarkers, setSonstigeMarkers] = useState([]);
|
|
|
|
|
const [tkComponentsMarkers, setTkComponentsMarkers] = useState([]);
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
const [lineStatusData, setLineStatusData] = useState([]);
|
|
|
|
|
const [linesData, setLinesData] = useState([]);
|
|
|
|
|
const mapLayersVisibility = useRecoilValue(mapLayersState);
|
|
|
|
|
@@ -183,39 +181,27 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|
|
|
|
const { lineColors, tooltipContents } = useLineData(webserviceGisLinesStatusUrl, setLineStatusData);
|
|
|
|
|
const [polylines, setPolylines] = useState([]);
|
|
|
|
|
const [markers, setMarkers] = useState([]);
|
|
|
|
|
|
|
|
|
|
const [newPoint, setNewPoint] = useState(null);
|
|
|
|
|
const [newCoords, setNewCoords] = useState(null);
|
|
|
|
|
const [tempMarker, setTempMarker] = useState(null);
|
|
|
|
|
|
|
|
|
|
const [showPoiModal, setShowPoiModal] = useState(false);
|
|
|
|
|
const [showCoordinatesModal, setShowCoordinatesModal] = useState(false);
|
|
|
|
|
const [popupCoordinates, setPopupCoordinates] = useState(null);
|
|
|
|
|
/*
|
|
|
|
|
const [popupCoordinates, setPopupCoordinates] = useState({
|
|
|
|
|
lat: 52.52,
|
|
|
|
|
lng: 13.405,
|
|
|
|
|
}); */
|
|
|
|
|
const [popupVisible, setPopupVisible] = useState(false);
|
|
|
|
|
|
|
|
|
|
const handleAddStation = (stationData) => {
|
|
|
|
|
setAddPoiModalWindowState(false);
|
|
|
|
|
closePopup(); // Schließt das Popup nach dem Hinzufügen
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const openVersionInfoModal = () => {
|
|
|
|
|
setShowVersionInfoModal(true);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const closeVersionInfoModal = () => {
|
|
|
|
|
setShowVersionInfoModal(false);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const [currentZoom, setCurrentZoom] = useState(() => {
|
|
|
|
|
const storedZoom = localStorage.getItem("mapZoom");
|
|
|
|
|
return storedZoom ? parseInt(storedZoom, 10) : 12;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const [currentCenter, setCurrentCenter] = useState(() => {
|
|
|
|
|
const storedCenter = localStorage.getItem("mapCenter");
|
|
|
|
|
try {
|
|
|
|
|
@@ -226,53 +212,49 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
const [polylineEventsDisabled, setPolylineEventsDisabled] = useRecoilState(polylineEventsDisabledState); // Recoil State
|
|
|
|
|
|
|
|
|
|
const allMarkers = [
|
|
|
|
|
...talasMarkers,
|
|
|
|
|
...eciMarkers,
|
|
|
|
|
...lteModemMarkers,
|
|
|
|
|
...ciscoRouterMarkers,
|
|
|
|
|
...wagoMarkers,
|
|
|
|
|
...siemensMarkers,
|
|
|
|
|
...otdrMarkers,
|
|
|
|
|
...wdmMarkers,
|
|
|
|
|
...gmaMarkers,
|
|
|
|
|
...messstellenMarkers,
|
|
|
|
|
...talasiclMarkers,
|
|
|
|
|
...dauzMarkers,
|
|
|
|
|
...smsfunkmodemMarkers,
|
|
|
|
|
...sonstigeMarkers,
|
|
|
|
|
...tkComponentsMarkers,
|
|
|
|
|
...ulafMarkers,
|
|
|
|
|
];
|
|
|
|
|
const useMock = process.env.NEXT_PUBLIC_USE_MOCK_API === "true";
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
const gmaLayerRef = useRef(null);
|
|
|
|
|
const talasLayerRef = useRef(null);
|
|
|
|
|
const eciMarkersLayerRef = useRef(null);
|
|
|
|
|
const lteModemMarkersLayerRef = useRef(null);
|
|
|
|
|
const ciscoRouterMarkersLayerRef = useRef(null);
|
|
|
|
|
const wagoMarkersLayerRef = useRef(null);
|
|
|
|
|
const siemensMarkersLayerRef = useRef(null);
|
|
|
|
|
const otdrMarkersLayerRef = useRef(null);
|
|
|
|
|
const wdmMarkersLayerRef = useRef(null);
|
|
|
|
|
const messstellenMarkersLayerRef = useRef(null);
|
|
|
|
|
const talasiclMarkersLayerRef = useRef(null);
|
|
|
|
|
const dauzMarkersLayerRef = useRef(null);
|
|
|
|
|
const smsfunkmodemMarkersLayerRef = useRef(null);
|
|
|
|
|
const ulafMarkersLayerRef = useRef(null);
|
|
|
|
|
const sonstigeMarkersLayerRef = useRef(null);
|
|
|
|
|
const tkComponentsMarkersRef = useRef(null);
|
|
|
|
|
//---------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
/* useEffect(() => {
|
|
|
|
|
fetchGisStatusStations(12, 484); // Beispielaufruf mit idMap = 10 und idUser = 484
|
|
|
|
|
}, []); */
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
const params = new URL(window.location.href).searchParams;
|
|
|
|
|
setMapId(params.get("m"));
|
|
|
|
|
setUserId(params.get("u"));
|
|
|
|
|
}, [setMapId, setUserId]);
|
|
|
|
|
|
|
|
|
|
/* useEffect(() => {
|
|
|
|
|
if (map && poiLayerRef.current && isPoiTypLoaded && !menuItemAdded && isRightsLoaded) {
|
|
|
|
|
//console.log("Überprüfung der Berechtigung vor addItemsToMapContextMenu: ", hasRights);
|
|
|
|
|
addItemsToMapContextMenu(hasRights);
|
|
|
|
|
}
|
|
|
|
|
}, [
|
|
|
|
|
map,
|
|
|
|
|
poiLayerRef,
|
|
|
|
|
isPoiTypLoaded,
|
|
|
|
|
menuItemAdded, // Hinzufügen zu den Abhängigkeiten, um den Effekt korrekt zu steuern
|
|
|
|
|
hasRights, // Sicherstellen, dass hasRights berücksichtigt wird
|
|
|
|
|
isRightsLoaded, // Überprüfung, ob die Rechte geladen sind
|
|
|
|
|
]); */
|
|
|
|
|
|
|
|
|
|
useLoadUserRights(setUserRights, setIsRightsLoaded, setHasRights);
|
|
|
|
|
|
|
|
|
|
useGmaMarkersLayer(
|
|
|
|
|
map,
|
|
|
|
|
gmaMarkers,
|
|
|
|
|
GisStationsMeasurements,
|
|
|
|
|
layers.MAP_LAYERS.GMA,
|
|
|
|
|
oms,
|
|
|
|
|
mapLayersVisibility.GMA // Übergebe die Sichtbarkeitsbedingung als Parameter
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
/* useSmsfunkmodemMarkersLayer(
|
|
|
|
|
map,
|
|
|
|
|
oms,
|
|
|
|
|
GisSystemStatic,
|
|
|
|
|
priorityConfig,
|
|
|
|
|
mapLayersVisibility.SMSFunkmodem // Sichtbarkeitsstatus aus dem State
|
|
|
|
|
); */
|
|
|
|
|
|
|
|
|
|
const useMock = process.env.NEXT_PUBLIC_USE_MOCK_API === "true";
|
|
|
|
|
//---------------------------------------------------------------
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
const fetchWebServiceMap = async () => {
|
|
|
|
|
try {
|
|
|
|
|
@@ -317,7 +299,6 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|
|
|
|
|
|
|
|
|
fetchWebServiceMap();
|
|
|
|
|
}, [dispatch, mapGisStationsStaticDistrictUrl]);
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
const endpoint = "/api/talas_v5_DB/gisLines/readGisLines";
|
|
|
|
|
@@ -382,17 +363,6 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|
|
|
|
fetchPoiData();
|
|
|
|
|
}, []);
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
|
|
|
|
|
/* useEffect(() => {
|
|
|
|
|
if (map) {
|
|
|
|
|
const dbLayer = new L.LayerGroup().addTo(map); // Define dbLayer here
|
|
|
|
|
|
|
|
|
|
return () => {
|
|
|
|
|
dbLayer.remove();
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}, [map]); */
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
// POIs auf die Karte zeichnen
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
if (map && !poiLayerRef.current) {
|
|
|
|
|
@@ -423,28 +393,8 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|
|
|
|
if (gisSystemStaticLoaded && map) {
|
|
|
|
|
}
|
|
|
|
|
}, [gisSystemStaticLoaded, map, GisSystemStatic, priorityConfig]);
|
|
|
|
|
|
|
|
|
|
//useCreateAndSetDevices(1, talasMarkers, GisSystemStatic, priorityConfig);
|
|
|
|
|
|
|
|
|
|
useLayerVisibility(map, talasMarkers, mapLayersVisibility, "TALAS", oms);
|
|
|
|
|
useLayerVisibility(map, eciMarkers, mapLayersVisibility, "ECI", oms);
|
|
|
|
|
useLayerVisibility(map, lteModemMarkers, mapLayersVisibility, "LTEModem", oms);
|
|
|
|
|
useLayerVisibility(map, ciscoRouterMarkers, mapLayersVisibility, "CiscoRouter", oms);
|
|
|
|
|
useLayerVisibility(map, lteModemMarkers, mapLayersVisibility, "LTEModem", oms);
|
|
|
|
|
|
|
|
|
|
useLayerVisibility(map, wagoMarkers, mapLayersVisibility, "WAGO", oms);
|
|
|
|
|
useLayerVisibility(map, siemensMarkers, mapLayersVisibility, "Siemens", oms);
|
|
|
|
|
useLayerVisibility(map, otdrMarkers, mapLayersVisibility, "OTDR", oms);
|
|
|
|
|
useLayerVisibility(map, wdmMarkers, mapLayersVisibility, "WDM", oms);
|
|
|
|
|
useLayerVisibility(map, gmaMarkers, mapLayersVisibility, "GMA", oms);
|
|
|
|
|
useLayerVisibility(map, sonstigeMarkers, mapLayersVisibility, "Sonstige", oms);
|
|
|
|
|
useLayerVisibility(map, tkComponentsMarkers, mapLayersVisibility, "TKKomponenten", oms);
|
|
|
|
|
useLayerVisibility(map, talasiclMarkers, mapLayersVisibility, "TALASICL", oms);
|
|
|
|
|
useLayerVisibility(map, dauzMarkers, mapLayersVisibility, "DAUZ", oms);
|
|
|
|
|
useLayerVisibility(map, smsfunkmodemMarkers, mapLayersVisibility, "SMSModem", oms);
|
|
|
|
|
useLayerVisibility(map, messstellenMarkers, mapLayersVisibility, "Messstellen", oms);
|
|
|
|
|
useLayerVisibility(map, ulafMarkers, mapLayersVisibility, "ULAF", oms);
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
if (map) {
|
|
|
|
|
var x = 51.41321407879154;
|
|
|
|
|
@@ -459,25 +409,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|
|
|
|
}
|
|
|
|
|
}, [map, zoomTrigger]);
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
const allMarkers = [
|
|
|
|
|
...talasMarkers,
|
|
|
|
|
...eciMarkers,
|
|
|
|
|
...lteModemMarkers,
|
|
|
|
|
...ciscoRouterMarkers,
|
|
|
|
|
...wagoMarkers,
|
|
|
|
|
...siemensMarkers,
|
|
|
|
|
...otdrMarkers,
|
|
|
|
|
...wdmMarkers,
|
|
|
|
|
...gmaMarkers,
|
|
|
|
|
...messstellenMarkers,
|
|
|
|
|
...talasiclMarkers,
|
|
|
|
|
...dauzMarkers,
|
|
|
|
|
...smsfunkmodemMarkers,
|
|
|
|
|
...sonstigeMarkers,
|
|
|
|
|
...tkComponentsMarkers,
|
|
|
|
|
...ulafMarkers,
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
if (map) {
|
|
|
|
|
// Sammle alle Marker in einer einzigen Liste
|
|
|
|
|
@@ -524,6 +456,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|
|
|
|
mapLayersVisibility, // Neu: Abhängigkeit für Sichtbarkeitsstatus
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
const fetchData = async () => {
|
|
|
|
|
@@ -559,7 +492,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|
|
|
|
fetchData();
|
|
|
|
|
}, []);
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------
|
|
|
|
|
//Tooltip an mouse position anzeigen für die Linien
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
if (!map) return;
|
|
|
|
|
@@ -628,13 +561,13 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|
|
|
|
}, [map, linePositions, lineColors, tooltipContents, newPoint, newCoords, tempMarker, polylineVisible]);
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
if (map) {
|
|
|
|
|
restoreMapSettings(map);
|
|
|
|
|
}
|
|
|
|
|
}, [map]);
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
if (map) {
|
|
|
|
|
console.log("map in MapComponent: ", map);
|
|
|
|
|
@@ -659,17 +592,14 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|
|
|
|
}
|
|
|
|
|
}, [map]);
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
// Bereich in DataSheet ->dropdownmenu
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
//console.log("🔍 GisStationsStaticDistrict Inhalt:", GisStationsStaticDistrict);
|
|
|
|
|
|
|
|
|
|
// Sicherstellen, dass `Points` existiert und ein Array ist
|
|
|
|
|
const points = GisStationsStaticDistrict?.Points;
|
|
|
|
|
/* if (!Array.isArray(points)) {
|
|
|
|
|
//console.warn("⚠️ GisStationsStaticDistrict.Points ist nicht vorhanden oder kein Array.", points);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
if (selectedArea && map) {
|
|
|
|
|
const station = points.find((s) => s.Area_Name === selectedArea);
|
|
|
|
|
|
|
|
|
|
@@ -688,7 +618,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|
|
|
|
map.flyTo([51.41321407879154, 7.739617925303934], 7);
|
|
|
|
|
}
|
|
|
|
|
}, [zoomTrigger, map]);
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
if (map && poiLayerRef.current && isPoiTypLoaded && !menuItemAdded && isRightsLoaded) {
|
|
|
|
|
addItemsToMapContextMenu(map, menuItemAdded, setMenuItemAdded, hasRights, setShowPopup, setPopupCoordinates);
|
|
|
|
|
@@ -713,8 +643,6 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|
|
|
|
fetchPriorityConfig();
|
|
|
|
|
}, []);
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
useInitializeMap(map, mapRef, setMap, setOms, setMenuItemAdded, addItemsToMapContextMenu, hasRights, setPolylineEventsDisabled);
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
@@ -789,23 +717,39 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|
|
|
|
}, [map, gmaMarkers, layers.MAP_LAYERS.GMA, oms, mapGisStationsMeasurementsUrl]);
|
|
|
|
|
|
|
|
|
|
//---------------------------------
|
|
|
|
|
//--------------hokks-------------------------------------------
|
|
|
|
|
useLoadUserRights(setUserRights, setIsRightsLoaded, setHasRights);
|
|
|
|
|
useGmaMarkersLayer(
|
|
|
|
|
map,
|
|
|
|
|
gmaMarkers,
|
|
|
|
|
GisStationsMeasurements,
|
|
|
|
|
layers.MAP_LAYERS.GMA,
|
|
|
|
|
oms,
|
|
|
|
|
mapLayersVisibility.GMA // Übergebe die Sichtbarkeitsbedingung als Parameter
|
|
|
|
|
);
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
//useCreateAndSetDevices(1, talasMarkers, GisSystemStatic, priorityConfig);
|
|
|
|
|
useLayerVisibility(map, talasMarkers, mapLayersVisibility, "TALAS", oms);
|
|
|
|
|
useLayerVisibility(map, eciMarkers, mapLayersVisibility, "ECI", oms);
|
|
|
|
|
useLayerVisibility(map, lteModemMarkers, mapLayersVisibility, "LTEModem", oms);
|
|
|
|
|
useLayerVisibility(map, ciscoRouterMarkers, mapLayersVisibility, "CiscoRouter", oms);
|
|
|
|
|
useLayerVisibility(map, lteModemMarkers, mapLayersVisibility, "LTEModem", oms);
|
|
|
|
|
useLayerVisibility(map, wagoMarkers, mapLayersVisibility, "WAGO", oms);
|
|
|
|
|
useLayerVisibility(map, siemensMarkers, mapLayersVisibility, "Siemens", oms);
|
|
|
|
|
useLayerVisibility(map, otdrMarkers, mapLayersVisibility, "OTDR", oms);
|
|
|
|
|
useLayerVisibility(map, wdmMarkers, mapLayersVisibility, "WDM", oms);
|
|
|
|
|
useLayerVisibility(map, gmaMarkers, mapLayersVisibility, "GMA", oms);
|
|
|
|
|
useLayerVisibility(map, sonstigeMarkers, mapLayersVisibility, "Sonstige", oms);
|
|
|
|
|
useLayerVisibility(map, tkComponentsMarkers, mapLayersVisibility, "TKKomponenten", oms);
|
|
|
|
|
useLayerVisibility(map, talasiclMarkers, mapLayersVisibility, "TALASICL", oms);
|
|
|
|
|
useLayerVisibility(map, dauzMarkers, mapLayersVisibility, "DAUZ", oms);
|
|
|
|
|
useLayerVisibility(map, smsfunkmodemMarkers, mapLayersVisibility, "SMSModem", oms);
|
|
|
|
|
useLayerVisibility(map, messstellenMarkers, mapLayersVisibility, "Messstellen", oms);
|
|
|
|
|
useLayerVisibility(map, ulafMarkers, mapLayersVisibility, "ULAF", oms);
|
|
|
|
|
//--------------------------------------------
|
|
|
|
|
|
|
|
|
|
useInitializeMap(map, mapRef, setMap, setOms, setMenuItemAdded, addItemsToMapContextMenu, hasRights, setPolylineEventsDisabled);
|
|
|
|
|
|
|
|
|
|
const gmaLayerRef = useRef(null);
|
|
|
|
|
const talasLayerRef = useRef(null);
|
|
|
|
|
const eciMarkersLayerRef = useRef(null);
|
|
|
|
|
const lteModemMarkersLayerRef = useRef(null);
|
|
|
|
|
const ciscoRouterMarkersLayerRef = useRef(null);
|
|
|
|
|
const wagoMarkersLayerRef = useRef(null);
|
|
|
|
|
const siemensMarkersLayerRef = useRef(null);
|
|
|
|
|
const otdrMarkersLayerRef = useRef(null);
|
|
|
|
|
const wdmMarkersLayerRef = useRef(null);
|
|
|
|
|
const messstellenMarkersLayerRef = useRef(null);
|
|
|
|
|
const talasiclMarkersLayerRef = useRef(null);
|
|
|
|
|
const dauzMarkersLayerRef = useRef(null);
|
|
|
|
|
const smsfunkmodemMarkersLayerRef = useRef(null);
|
|
|
|
|
const ulafMarkersLayerRef = useRef(null);
|
|
|
|
|
const sonstigeMarkersLayerRef = useRef(null);
|
|
|
|
|
const tkComponentsMarkersRef = useRef(null);
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
if (!gisSystemStaticLoaded || !map) return; // Sicherstellen, dass die Karte und Daten geladen sind
|
|
|
|
|
|
|
|
|
|
|