Commit Graph

163 Commits

Author SHA1 Message Date
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