From af133c1d5f61a58c060231065b4f0a584d506f5d Mon Sep 17 00:00:00 2001 From: RKWojs Date: Tue, 24 Jun 2025 13:41:47 +0200 Subject: [PATCH] feat: Add tool panel with multiple map interaction tools in ProjectsMapPage --- src/app/projects/map/page.js | 154 +++++++++++++++++++++++++++- src/app/projects/map/page_backup.js | 0 2 files changed, 152 insertions(+), 2 deletions(-) create mode 100644 src/app/projects/map/page_backup.js diff --git a/src/app/projects/map/page.js b/src/app/projects/map/page.js index abe74cf..79a23a2 100644 --- a/src/app/projects/map/page.js +++ b/src/app/projects/map/page.js @@ -29,10 +29,10 @@ export default function ProjectsMapPage() { in_progress_design: true, in_progress_construction: true, fulfilled: true, - }); - const [activeBaseLayer, setActiveBaseLayer] = useState("Polish Geoportal Orthophoto"); + }); const [activeBaseLayer, setActiveBaseLayer] = useState("Polish Geoportal Orthophoto"); const [activeOverlays, setActiveOverlays] = useState([]); const [showLayerPanel, setShowLayerPanel] = useState(true); + const [currentTool, setCurrentTool] = useState("move"); // Current map tool // Status configuration with colors and labels const statusConfig = { @@ -389,6 +389,156 @@ export default function ProjectsMapPage() { title="Zoom Out" > − + + {/* Tool Panel - Below Zoom Controls */} +
{/* Move Tool */} + + + {/* Select Tool */} + + + {/* Measure Tool */} + + + {/* Draw Tool */} + + + {/* Pin/Marker Tool */} + + + {/* Area Tool */} +
diff --git a/src/app/projects/map/page_backup.js b/src/app/projects/map/page_backup.js new file mode 100644 index 0000000..e69de29