MapComponent.js etwas gereinegt von ungenutzte URLs
This commit is contained in:
@@ -259,14 +259,6 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const fetchWebServiceMap = async () => {
|
const fetchWebServiceMap = async () => {
|
||||||
try {
|
try {
|
||||||
let stationsStaticUrl = useMock ? "/mockData/gisStationsStaticDistrictMock.json" : mapGisStationsStaticDistrictUrl;
|
|
||||||
|
|
||||||
let stationsStatusUrl = useMock ? "/mockData/gisStationsStatusDistrictMock.json" : mapGisStationsStatusDistrictUrl;
|
|
||||||
|
|
||||||
let stationsMeasurementsUrl = useMock ? "/mockData/gisStationsMeasurementsMock.json" : mapGisStationsMeasurementsUrl;
|
|
||||||
|
|
||||||
let systemStaticUrl = useMock ? "/mockData/gisSystemStaticMock.json" : mapGisSystemStaticUrl;
|
|
||||||
|
|
||||||
// Zähler für externe API-Aufrufe in localStorage speichern
|
// Zähler für externe API-Aufrufe in localStorage speichern
|
||||||
let requestCount = localStorage.getItem("fetchWebServiceMap") || 0;
|
let requestCount = localStorage.getItem("fetchWebServiceMap") || 0;
|
||||||
requestCount = parseInt(requestCount, 10);
|
requestCount = parseInt(requestCount, 10);
|
||||||
@@ -935,13 +927,6 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
|||||||
//--------------------------------------------
|
//--------------------------------------------
|
||||||
const fetchGisStationsStaticDistrict = async (idMap, idUser, dispatch) => {
|
const fetchGisStationsStaticDistrict = async (idMap, idUser, dispatch) => {
|
||||||
try {
|
try {
|
||||||
let stationsStaticUrl = useMock ? "/mockData/gisStationsStaticDistrictMock.json" : mapGisStationsStaticDistrictUrl;
|
|
||||||
|
|
||||||
let stationsStatusUrl = useMock ? "/mockData/gisStationsStatusDistrictMock.json" : mapGisStationsStatusDistrictUrl;
|
|
||||||
|
|
||||||
let stationsMeasurementsUrl = useMock ? "/mockData/gisStationsMeasurementsMock.json" : mapGisStationsMeasurementsUrl;
|
|
||||||
|
|
||||||
let systemStaticUrl = useMock ? "/mockData/gisSystemStaticMock.json" : mapGisSystemStaticUrl;
|
|
||||||
// API-Endpunkt mit Query-Parametern aufrufen
|
// API-Endpunkt mit Query-Parametern aufrufen
|
||||||
const response = await fetch(`/api/gisStationsStaticDistrict?idMap=${idMap}&idUser=${idUser}`);
|
const response = await fetch(`/api/gisStationsStaticDistrict?idMap=${idMap}&idUser=${idUser}`);
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
// /config/appVersion
|
// /config/appVersion
|
||||||
export const APP_VERSION = "1.1.19";
|
export const APP_VERSION = "1.1.20";
|
||||||
|
|||||||
Reference in New Issue
Block a user