WIP: POI hinzufügen Modal

This commit is contained in:
Ismail Ali
2025-03-09 00:52:34 +01:00
parent c227b57f9b
commit e4bb12fe18
6 changed files with 72 additions and 62 deletions

View File

@@ -64,11 +64,13 @@ const addItemsToMapContextMenu = (map, menuItemAdded, setMenuItemAdded, openPopu
map.contextmenu.addItem({
text: "POI hinzufügen",
icon: "/img/add_station.png",
callback: (e) => {
callback: openPopupWithCoordinates, // Statt alert wird die Funktion zum Öffnen des Popups genutzt
/* callback: (e) => {
alert("POI hinzufügen an: " + e.latlng.lat + ", " + e.latlng.lng);
// Falls du ein Modal-Fenster zum Hinzufügen verwenden möchtest:
// ShowAddStationPopup({ latlng: e.latlng, onClose: () => {} });
},
}, */
});
}
}