feat: create useMapContextMenu.js for Separate of Conserns or modularity
This commit is contained in:
@@ -181,7 +181,7 @@ export const insertNewMarker = (closestPoints, newPoint, lineData, map) => {
|
||||
});
|
||||
};
|
||||
//----------------------------------------------
|
||||
export const addItemsToMapContextMenu = () => {
|
||||
/* export const addItemsToMapContextMenu = () => {
|
||||
const [menuItemAdded, setMenuItemAdded] = useState(false);
|
||||
if (!menuItemAdded) {
|
||||
//console.log("contextMenuItems hasRights:", hasRights);
|
||||
@@ -195,7 +195,7 @@ export const addItemsToMapContextMenu = () => {
|
||||
|
||||
setMenuItemAdded(true); // Menüpunkt wurde hinzugefült, Zustand aktualisieren
|
||||
}
|
||||
};
|
||||
}; */
|
||||
//----------------------------------------------
|
||||
export const saveLineData = (lineData) => {
|
||||
fetch("/api/talas_v5_DB/gisLines/updateLineCoordinates", {
|
||||
|
||||
Reference in New Issue
Block a user