Files
nodeMap/docs/utils/addContextMenuToMarker.md

33 lines
600 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- /docs/utils/addContextMenuToMarker.md -->
# 🧭 addContextMenuToMarker.js
Fügt einem Leaflet-Marker ein individuelles Kontextmenü hinzu.
## Zweck
- Erlaubt dem Nutzer über Rechtsklick oder Interaktion den Zugriff auf Funktionen wie:
- „Station öffnen (Tab)“
- „Details anzeigen“
- „Bearbeiten starten“
## Verwendung
```js
addContextMenuToMarker(marker, idLD, name);
```
## Parameter
- `marker`: Leaflet-Marker
- `idLD`: Geräte-ID
- `name`: Anzeigename
## Kontext
- Wird z.B. in `createAndSetDevices.js` verwendet
---
[Zurück zur Übersicht](../README.md)