POIs hinzufügen, löschen und bearbeiten funktioniert! in mapFeatures.js als marker, irgendwann in poi umbenennen
This commit is contained in:
@@ -58,7 +58,7 @@ export const setupMarkers = async (
|
||||
popupAnchor: [1, -34],
|
||||
}),
|
||||
draggable: canDrag,
|
||||
idLD: location.idLD, // Füge die idLD zum Marker hinzu
|
||||
id: location.idPoi,
|
||||
name: location.name,
|
||||
description: location.description,
|
||||
}).bindContextMenu({
|
||||
@@ -165,7 +165,6 @@ export const setupPolylines = (map, linePositions, lineColors, tooltipContents,
|
||||
};
|
||||
|
||||
//document.addEventListener("mousedown", handleOutsideClick);
|
||||
|
||||
linePositions.forEach((lineData, lineIndex) => {
|
||||
const lineMarkers = [];
|
||||
lineData.coordinates.forEach((coord, index) => {
|
||||
@@ -319,6 +318,5 @@ export const setupPolylines = (map, linePositions, lineColors, tooltipContents,
|
||||
|
||||
// Add listeners to the context menu items
|
||||
const contextMenuElement = document.querySelector(".leaflet-contextmenu"); // Assuming the context menu class is 'leaflet-contextmenu'
|
||||
|
||||
return { markers, polylines };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user