Commit Graph

119 Commits

Author SHA1 Message Date
ISA
132242e7d8 WIP: noch Design für POI hinzufügen 2024-09-17 12:35:52 +02:00
ISA
465aa6d848 fix: TypeError: Cannot read properties of null (reading 'contextmenu')
- Korrigiert TypeError, der auftrat, wenn versucht wurde, auf `contextmenu` zuzugreifen, während es null war.
- Implementiert präzise Zeitmessung mithilfe von `Date.now()`, um das Schließen des Kontextmenüs nach genau 17 Sekunden sicherzustellen.
- Verbessert Benutzererfahrung durch zuverlässigere und stabilere Menüverwaltung.
2024-09-13 14:44:10 +02:00
ISA
864644c543 feat(PoiUpdateModal): Display correct POI type in dropdown on modal open
- Added logic to store the selected POI type in localStorage during POI selection.
- Updated PoiUpdateModal to pre-select the correct POI type from localStorage when opening the modal.
- Implemented fallback to fetch POI types if not found in localStorage.
- Ensured the selected device is also pre-filled in the dropdown.
2024-09-13 10:21:07 +02:00
ISA
56f4a585ae WIP: POI Update Modal, Beschreibung und Gerät funktioniert wie erweitet, Typ soll auch den gewählte POI Typ zuerst in dropdown angezeigt wird 2024-09-13 08:50:10 +02:00
ISA
5295dfec62 WIP: POI Update 2024-09-12 22:56:59 +02:00
ISA
b364d056f1 feat: Set default polyline visibility to true if not defined in localStorage
- Added logic to check if 'polylineVisible' exists in localStorage on page load.
- If not present, set the default value to 'true' to ensure polylines are displayed by default.
- Updated `setupPolylines` function to handle polyline visibility based on localStorage value.
2024-09-12 13:24:50 +02:00
ISA
da5e5a8b65 Kombination für 30, Linien ausblenden, und checkbox in localStorage mergen 2024-09-12 09:14:05 +02:00
ISA
0230600da9 Stützpunkte in Kontextmenü hinzufügen 2024-09-11 22:42:48 +02:00
ISA
f8a4b1f86b Kabelstrecken einblenden und ausblenden 2024-09-11 22:19:04 +02:00
ISA
8a01ca8814 fix: close context menu 2 seconds before API call to prevent errors
- Implemented logic to monitor the context menu state and ensure it closes 2 seconds before the 20-second interval API call
- Added functionality to log remaining time while the context menu is open for better debugging
- Refactored interval handling to reset remaining time and close the context menu properly
- Addressed runtime error related to null context menu handling
2024-09-11 14:53:13 +02:00
ISA
a43fbff4f8 contexmenu handle in MapComponent wegen error contextmenu nicht vorhanden 2024-09-11 10:35:38 +02:00
ISA
77bc63f22e Connection: "close" in HTTP headers in fetchWebServiceMap in MapComponent.js 2024-09-10 14:04:39 +02:00
ISA
e1b51f6802 Kontextmenü Item "POI Bearbeiten", "POI hinzufügen" und "Stützpunkt hinzufügen" ausblenden wenn localStorage Variable "editMode" false ist 2024-09-09 11:48:43 +02:00
ISA
04e50c30f8 feat: Implementierung des Bearbeitungsmodus 2024-09-06 14:08:39 +02:00
ISA
af458ac270 Add editMode to poiUtils.js, setupPOIs.js and useMapContextMenu.js
editMode von localStorage lesen und Rechte vergeben oder entnehmen wenn die Schaltfläche "Bearbeitungsmodus aktivieren"
2024-09-06 11:25:32 +02:00
ISA
6850fee16a WIP: Add basic structure for edit mode to DataSheet.js
Der Bearbeitungsmodus ist noch nicht vollständig, und es fehlen
einige Funktionalitäten. Reduzierung der Datenbankanfragen noch in Arbeit.
2024-09-06 10:41:47 +02:00
ISA
98e8bdf96e Version 1.0.1.6 mysqlPool.js configuration is better, but can be better, check MySQL Workbench Connections 2024-09-05 15:26:42 +02:00
ISA
3d8ecb8287 Version 1.0.1.4 delete "api-Kopie" und "api back30" and delete link from device popup 2024-09-05 11:14:03 +02:00
ISA
42ea03677b Version 1.0.4.1 open Links in new Tab for polylines and devices work it without disablePolylineEvents(window.polylines); 2024-09-05 06:48:06 +02:00
ISA
9e4a229248 Version 1.0.4 Links open in new tab for polylines and devices work it! 2024-09-04 19:26:08 +02:00
ISA
f8e35cece6 Mit rechte Maustaste Link in localStorage speichern in setupPolylines.js 2024-09-04 15:50:27 +02:00
ISA
421844611f Stützpunkt entfernen Funktion ist wieder da 2024-09-04 11:18:25 +02:00
ISA
eea9a3af4c Jetzt muss noch Links für polylines mit localStorage oder Recoil gelöst werden, alle Links für alle Geräte funktionieren gut 2024-09-04 09:52:52 +02:00
ISA
3c433b9003 Links für alle Geräte funktioniert aber für die Linien muss noch bearbeitet werden 2024-09-04 09:01:09 +02:00
ISA
466fc55025 Refactoring addContextMenuToMarker.js and openInNewTab.js 2024-09-04 08:41:18 +02:00
ISA
5ed41642da Refacoring, but links for polylines and devices in progress 2024-09-04 08:08:10 +02:00
ISA
193d1e2f2f Refactoring 2024-09-03 22:55:57 +02:00
ISA
e60ce2b354 Recoil Statefpr polylines and Devices in process 2024-09-03 15:46:50 +02:00
ISA
8a9216980a mit rechte Maustaste auf ein Gerät disablePolylineEvents(window.polylines);, muss noch angepasst werden 2024-09-03 14:21:48 +02:00
ISA
4011bddc51 in setupPOIs disablePolylineEvents(window.polylines); auskommentiert, weil es soll für Geräte sein und nicht POIs 2024-09-03 12:06:20 +02:00
ISA
f35c7c4d0b markerUtils in poiUitls umbenannt 2024-09-03 11:30:37 +02:00
ISA
bbd60cd5f4 createAndSetDevices ausgelagert in createAndSetDevices.js von markerUtils.js 2024-09-03 11:17:09 +02:00
ISA
0c4df186c2 createAndSetMarkers in createAndSetDevices umbenennt 2024-09-03 10:39:35 +02:00
ISA
e5dfa7f494 talasMarkersLayer.js in useTalasMarkersLayer.js umbenennt 2024-09-03 09:36:19 +02:00
ISA
0f9a54efa1 mapFeatures in setupPolylines umbenennt 2024-09-03 09:27:48 +02:00
ISA
8814f0e450 setupMarkers in setupPOIs umbenennt und ausgelagert 2024-09-03 09:10:19 +02:00
ISA
46a9f05894 Sattion öffnen (Tab) für polylines und Geräte funktioniert nicht zu 100% muss noch optimiert werden 2024-09-03 08:50:58 +02:00
ISA
03de1ab43e Merge branch 'temp-branch2' into feature/main-contextmenu-line 2024-09-02 20:46:09 +02:00
ISA
8500be8d5a Station öffnen (Tab) funktioniert für polylines und Stationen(Markers) 2024-09-02 20:20:22 +02:00
ISA
17a8075d73 Station öffnen (Tab) für polylines ok, aber für marker muss noch option.link nehmen 2024-09-02 15:58:42 +02:00
ISA
9724c886b2 Station öffnen zweimal sichtbar für Marker und polyline 2024-09-02 13:58:59 +02:00
ISA
566573eff6 Merge branch 'temp-branch' into feature/main-contextmenu-line 2024-09-02 12:08:35 +02:00
ISA
1e83274d40 Temporärer Commit vor Anwendung des Stashes 2024-09-02 11:56:23 +02:00
ISA
ea46bd771b mysql createPool 2024-09-02 09:06:49 +02:00
ISA
ac80c8c619 Für 10.10.0.30 vorbereitet 2024-08-16 06:44:34 +02:00
ISA
8699c1c4a0 POIs hinzufügen, löschen und bearbeiten funktioniert! in mapFeatures.js als marker, irgendwann in poi umbenennen 2024-08-15 15:53:27 +02:00
ISA
18ad7cad7e addEventListener Error Problem gelöst bei der Linien und die Klicks 2024-08-15 12:10:01 +02:00
ISA
dc9b48f012 Station von der Linie in neue Tab öffnen 2024-08-14 21:19:29 +02:00
ISA
77c2bf1c89 polyline.setStyle({ weight: 20 });
}); für bereiter Linie
2024-08-14 20:55:12 +02:00
ISA
e0c23402f7 Adjust zoom conditions: zoomIn only if zoom < 14, zoomOut only if zoom > 7 2024-08-14 15:43:53 +02:00