docs: Parameterübergabe in MapComponent dokumentiert

- Neue Datei `docs/frontend/components/MapComponent.md` hinzugefügt
- Erklärung zur Verwendung von ?m=...&u=... im Frontend
- Klarstellung, dass Webservices idMap/idUser erwarten
- MapComponent angepasst für URL-Parameter 'm' und 'u'
This commit is contained in:
ISA
2025-05-16 06:51:54 +02:00
parent 24ee77bd28
commit 06028ccb6f
3 changed files with 62 additions and 2 deletions

View File

@@ -863,7 +863,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
const fetchGisStationsStaticDistrict = async (idMap, idUser, dispatch) => {
try {
// API-Endpunkt mit Query-Parametern aufrufen
const response = await fetch(`/api/gisStationsStaticDistrict?idMap=${idMap}&idUser=${idUser}`);
const response = await fetch(`/api/gisStationsStaticDistrict?m=${idMap}&u=${idUser}`);
if (!response.ok) {
throw new Error("Netzwerkantwort war nicht ok.");