WIP: POI hinzufügen Modal
This commit is contained in:
@@ -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: () => {} });
|
||||
},
|
||||
}, */
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user