Mit rechte Maustaste Link in localStorage speichern in setupPolylines.js

This commit is contained in:
ISA
2024-09-04 15:50:27 +02:00
parent 421844611f
commit f8e35cece6
7 changed files with 712 additions and 7 deletions

View File

@@ -194,6 +194,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
}
});
const [polylineEventsDisabled, setPolylineEventsDisabled] = useRecoilState(polylineEventsDisabledState); // Recoil State
//---------------------------------------------------------------
useEffect(() => {
@@ -585,6 +586,13 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
}
}
}, [map, polylineEventsDisabled]);
useEffect(() => {
if (map) {
console.log("6- Karteninstanz (map) wurde jetzt erfolgreich initialisiert");
// Setze die Karteninstanz in den Recoil-Atom
}
}, [map]);
return (
<>