cleanup: entferne mapGisStationsMeasurementsUrl aus config.js und veralteten fetch in MapComponent

- Redux-Thunk fetchGisStationsMeasurementsThunk übernimmt vollständige Steuerung
- fetchGisStationsMeasurementsService verwendet statt direkter URL-Konstante
- config.js um mapGisStationsMeasurementsUrl bereinigt
- Version erhöht auf 1.1.134
This commit is contained in:
ISA
2025-05-21 15:34:43 +02:00
parent b0448339ab
commit d003913741
4 changed files with 23 additions and 28 deletions

View File

@@ -121,7 +121,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
};
// Konstanten für die URLs
const mapGisStationsMeasurementsUrl = config.mapGisStationsMeasurementsUrl;
const webserviceGisLinesStatusUrl = config.webserviceGisLinesStatusUrl;
//console.log("priorityConfig in MapComponent1: ", priorityConfig);
//-----------------------------------------
@@ -547,7 +547,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
};
// Aktualisiere die Messdaten
await fetchGisStationsMeasurements(mapGisStationsMeasurementsUrl, setGisStationsMeasurements, fetchOptions);
await fetchGisStationsMeasurements(setGisStationsMeasurements, fetchOptions);
// Aktualisiere die Marker-Layer
// useGmaMarkersLayer(map, gmaMarkers, GisStationsMeasurements, layers.MAP_LAYERS.GMA, oms);
@@ -566,7 +566,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
// Cleanup-Funktion, um das Intervall zu entfernen, wenn die Komponente entladen wird
return () => clearInterval(intervalId); */
}, [map, gmaMarkers, layers.MAP_LAYERS.GMA, oms, mapGisStationsMeasurementsUrl]);
}, [map, gmaMarkers, layers.MAP_LAYERS.GMA, oms]);
//---------------------------------
//--------------hokks-------------------------------------------