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