POIs visible with checkbox
This commit is contained in:
9
store/atoms/poiLayerVisible.js
Normal file
9
store/atoms/poiLayerVisible.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// /store/atoms/poiLayerVisible.js
|
||||
// Recoil atom for the visibility of the POI layer
|
||||
//
|
||||
import { atom } from "recoil";
|
||||
|
||||
export const poiLayerVisibleState = atom({
|
||||
key: "poiLayerVisibleState",
|
||||
default: true,
|
||||
});
|
||||
13
store/atoms/urlParameterState.js
Normal file
13
store/atoms/urlParameterState.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { atom } from "recoil";
|
||||
|
||||
// Atom für die Speicherung der mapId aus der URL
|
||||
export const mapIdState = atom({
|
||||
key: "mapIdState", // Eindeutiger Schlüssel (innerhalb des gesamten Projekts)
|
||||
default: "10", // Standardwert
|
||||
});
|
||||
|
||||
// Atom für die Speicherung der userId aus der URL
|
||||
export const userIdState = atom({
|
||||
key: "userIdState",
|
||||
default: "484",
|
||||
});
|
||||
Reference in New Issue
Block a user