temp:
This commit is contained in:
@@ -74,7 +74,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|||||||
const fetchGisStatusStations = async (idMap, idUser) => {
|
const fetchGisStatusStations = async (idMap, idUser) => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
`/api/talas_v5_DB/getGisStatusStations?idMap=${idMap}&idUser=${idUser}`
|
`/api/talas5/webserviceMap/GisStationsStatusDistrict?idMap=${idMap}&idUser=${idUser}`
|
||||||
);
|
);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(`Error: ${response.statusText}`);
|
throw new Error(`Error: ${response.statusText}`);
|
||||||
@@ -88,7 +88,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetchGisStatusStations(1, 123); // Beispielaufruf mit idMap = 1 und idUser = 123
|
fetchGisStatusStations(12, 484); // Beispielaufruf mit idMap = 10 und idUser = 484
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user