Commit Graph

194 Commits

Author SHA1 Message Date
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
ISA
43efbec102 feat(map): Implement context menu auto-close on outside click and improve user interaction
- Added `handleOutsideClick` to detect clicks outside the context menu and close it automatically.
- Implemented `closeContextMenu` function to hide the context menu when necessary.
- Enhanced `isMouseOverMenuItem` logic to track mouse movements and ensure the context menu remains open when interacting with menu items.
- Improved user experience by hiding context menu items by index and restoring them after user interaction.
2024-08-14 15:12:15 +02:00
ISA
3fc73e93fb linie Station in neue Tab öffnen in mapFeatures.js 2024-08-10 18:28:52 +02:00
ISA
d729e1408b Stationnamen sind richtig 2024-08-10 14:06:19 +02:00
ISA
b7116a1e6f polylines tooltip content 2024-08-10 10:32:37 +02:00
ISA
5b380b7c8f feat: Reinzoomen auf 12 wie in aspx 2024-07-18 07:34:38 +02:00
ISA
5bf16940fd fix: POI hinzufügen funktioniert! addStationCallback und Benutzerrechte in server URL: 2024-07-16 07:25:49 +02:00
ISA
a5e86f7fa5 fix: POIs können per Drag und Drop verschoben werden auf die Map 2024-07-15 16:08:57 +02:00
ISA
5b41072c46 fix: Reinzoomen, Rauszoom und CenterHere in Contextmenu 2024-07-15 11:38:13 +02:00
ISA
29eb3e8192 fix: Bereich ausgewählt dann könnte nicht mit der Maus die Kartenansicht verschieben 2024-07-15 09:42:06 +02:00
ISA
45d366facc feat: BASE_URL in contextMenuUtil.js importiert 2024-07-12 08:16:51 +02:00
ISA
042d086a49 feat: paste centerHere function into zoomAndCenterUtil.js with error 2024-07-12 07:03:37 +02:00
ISA
91923ef8b4 feat: Extract zoomIn and zoomOut functions to separate file
- Moved zoomIn and zoomOut functions from MapComponent.js to a new file zoomUtils.js in the utils directory.
- Updated MapComponent.js to import and use the zoomIn and zoomOut functions from the new file.
- This change improves code modularity and readability.
2024-07-12 06:25:05 +02:00
ISA
c793e1c81c feat: Move openInSameWindow function to a separate file
- Moved the openInSameWindow function from MapComponent.js to a new file openInSameWindow.js in the utils directory.
- Updated MapComponent.js to import and use the openInSameWindow function from the new file.
- This change improves code modularity and readability.
2024-07-12 06:15:54 +02:00
ISA
18f0f8266b refactor: Move checkOverlappingMarkers to utils and update import in MapComponent
- Moved checkOverlappingMarkers function from MapComponent.js to a new file in /utils/mapUtils.js for better separation of concerns.
- Updated the import statement in MapComponent.js to reflect the new location of checkOverlappingMarkers.
2024-07-11 10:44:40 +02:00
ISA
0079664dfb feat: Marker hinzufügen und Marker entfernen in PolyLines und der currentZoom funktioniert 2024-07-11 10:11:20 +02:00
ISA
2bd9558aa9 feat: create useMapContextMenu.js for Separate of Conserns or modularity 2024-07-10 10:53:28 +02:00
ISA
34ad670ae1 feat: create /utils/contextMenuUtils.js module 2024-07-10 07:53:27 +02:00
ISA
6cc3cdc483 feat: Extracted restoreMapSettings to mapUtils.js
Moved the restoreMapSettings function from MapComponent.js to mapUtils.js for better modularity and reusability. This change also helps in maintaining cleaner code and improving readability.
2024-07-09 10:35:46 +02:00
ISA
b53fe1b3f1 feat: Refactor utils.js into specialized utility modules
- Split utils.js into three separate files to enhance modularity and maintainability:
  1. geometryUtils.js: Contains geometry-related functions like parsePoint and findClosestPoints.
  2. mapUtils.js: Contains functions related to map operations such as redrawPolyline and saveLineData.
  3. markerUtils.js: Contains functions related to marker operations like insertNewMarker and handleEditPoi.

- Updated import statements in the relevant files to reflect the new structure.
- Ensured that each utility module is self-contained and has clear responsibilities.

This refactor improves the separation of concerns, making the codebase more organized and easier to navigate. Future maintenance and enhancements can now be more easily localized to the appropriate utility module.
2024-07-09 08:10:02 +02:00