Commit Graph

9 Commits

Author SHA1 Message Date
ISA
ce8d1f5a19 Fix: Sicherstellen, dass MapComponent innerhalb des RecoilRoot-Kontexts liegt
- Entfernt redundanten `RecoilRoot` aus `MapComponent`, um Probleme mit verschachtelten Wurzeln zu vermeiden.
- Sichergestellt, dass `MapComponent` immer innerhalb des zentralen `RecoilRoot` gerendert wird, der in `_app.js` definiert ist.
- Das Problem "Diese Komponente muss innerhalb einer `<RecoilRoot>`-Komponente verwendet werden" durch Platzieren aller Recoil-States im korrekten Kontext behoben.
- `ShowAddStationPopup` direkt als JSX-Element innerhalb von `MapComponent` zur besseren Übersicht verwendet.
2024-05-05 13:14:09 +02:00
ISA
0448d1bc56 Rename loadStore.js to readPoiMarkersStore.js 2024-05-03 13:58:02 +02:00
ISA
39e5e1cb5a Refactor: Reorganize state management into atoms and selectors directories
Moved all Recoil atoms to a new 'atoms' directory and selectors to a 'selectors' directory to clarify the project structure and improve maintainability. This change separates concerns by clearly distinguishing between simple state (atoms) and derived state (selectors), facilitating better understanding and scalability of the application's state management.
2024-05-03 10:18:42 +02:00
ISA
79c0b4e8cf Rename api/locations to api/readLocations and api/poiTyp to api/readPoiTyp 2024-05-03 09:26:09 +02:00
ISA
fb25f3a39d Fix: Ensure proper map object is passed to ShowAddStationPopup
The ShowAddStationPopup component was failing to close popups because it was using an uninitialized 'map' object. This commit changes the reference from 'map' to 'initMap' at the point where ShowAddStationPopup is rendered. This ensures that the correct map instance is being used, resolving the TypeError related to undefined properties when attempting to close the popup.

This change is critical for maintaining the functionality of our map interactions, particularly in scenarios where dynamic components are rendered based on user actions.
2024-05-03 07:20:51 +02:00
ISA
5986de04dd Poi hinzufügen per Popup Formular 2024-05-02 20:46:39 +02:00
ISA
31803907b9 Das property poiTypeId in handleSubmit in der Console 2024-05-02 19:48:26 +02:00
ISA
c9c9e5feb3 DropDownmenü Element von API aufrufen in Kontextmenü ->Popup-> Station hinzufügen 2024-05-02 14:26:36 +02:00
ISA
7465069e44 ShowAddStationPopup.js Komponent erstellt statt in MapComponent für bessere Organisation in das Projekt 2024-05-02 12:37:59 +02:00