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