Commit Graph

2 Commits

Author SHA1 Message Date
ISA
bf4fc95b8e Fix Leaflet map initialization: prevent DOM errors and ensure robust container checks
- Refactored initializeMap to accept the DOM node instead of the ref object
- Updated all checks to use the DOM node directly
- Improved useInitializeMap to only call initializeMap when the container is ready
- Prevents "mapRef.current ist nicht definiert oder nicht im DOM" errors
- Ensures map is only initialized when the container is attached
2025-08-19 15:56:24 +02:00
ISA
f59fb62d29 hooks auslagern von MapComponent, useInitializeMap.js und useLoadUserRights.js 2025-03-11 07:45:08 +01:00