Files
nodeMap/docs/hooks/useCreateAndSetDevices.md
2025-06-24 15:07:00 +02:00

25 lines
715 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/hooks/useCreateAndSetDevices.md -->
# 🛠️ useCreateAndSetDevices.js
Custom Hook zur Initialisierung von Leaflet-Markern für ein bestimmtes System.
Bindet `createAndSetDevices(...)` automatisch in einen `useEffect`.
Beispiel: TALAS Layer ist mit Pfeilen markiert
![TALAS-Layer](../screenshots/TALAS-Layer.png)
## Parameter
- `systemId`: ID des Gerätesystems (z.B. 1 = TALAS)
- `setMarkersFunction`: Funktion zum Speichern der erzeugten Marker
- `GisSystemStatic`: Systemdaten aus Redux
- `priorityConfig`: Konfigurationsobjekt zur Prioritätsbewertung
## Redux
- Bezieht `polylineEventsDisabled` aus Redux zur Steuerung der Interaktivität
---
[Zurück zur Übersicht](../README.md)