fix: LTEModam nicht klickbar
This commit is contained in:
@@ -10,13 +10,13 @@ const useLteModemMarkersLayer = (map, oms, GisSystemStatic, priorityConfig) => {
|
||||
|
||||
useEffect(() => {
|
||||
if (GisSystemStatic && GisSystemStatic.length && map) {
|
||||
createAndSetDevices(5, setGsmModemMarkers, GisSystemStatic, priorityConfig); // GSM-Modem
|
||||
createAndSetDevices(5, setLteModemMarkers, GisSystemStatic, priorityConfig); // GSM-Modem
|
||||
}
|
||||
}, [GisSystemStatic, map, priorityConfig]);
|
||||
|
||||
useEffect(() => {
|
||||
if (map && gsmModemMarkers.length) {
|
||||
gsmModemMarkers.forEach((marker) => {
|
||||
if (map && lteModemMarkers.length) {
|
||||
lteModemMarkers.forEach((marker) => {
|
||||
marker.addTo(map);
|
||||
oms.addMarker(marker);
|
||||
|
||||
@@ -40,8 +40,8 @@ const useLteModemMarkersLayer = (map, oms, GisSystemStatic, priorityConfig) => {
|
||||
// Call the function to check for overlapping markers
|
||||
checkOverlappingMarkers(oms, map);
|
||||
}
|
||||
}, [map, gsmModemMarkers]);
|
||||
}, [map, lteModemMarkers]);
|
||||
|
||||
return gsmModemMarkers;
|
||||
return lteModemMarkers;
|
||||
};
|
||||
export default useLteModemMarkersLayer;
|
||||
|
||||
Reference in New Issue
Block a user