git commit -m "fix: Station öffnen im Kontextmenü für POIs deaktiviert"
This commit is contained in:
12
components/mainComponent/hooks/useRestoreMapSettings.js
Normal file
12
components/mainComponent/hooks/useRestoreMapSettings.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { useEffect } from "react";
|
||||
import { restoreMapSettings } from "../../../utils/mapUtils.js"; // Stelle sicher, dass der Pfad korrekt ist
|
||||
|
||||
const useRestoreMapSettings = (map) => {
|
||||
useEffect(() => {
|
||||
if (map) {
|
||||
restoreMapSettings(map);
|
||||
}
|
||||
}, [map]);
|
||||
};
|
||||
|
||||
export default useRestoreMapSettings;
|
||||
Reference in New Issue
Block a user