Constrain selections to active work areas
GeoIntel CI / docs-smoke (push) Canceled after 0s
GeoIntel CI / contract-smoke (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-17 12:58:38 +02:00
parent a29c787238
commit d652db6a1e
20 changed files with 329 additions and 71 deletions
+3 -8
View File
@@ -1154,12 +1154,7 @@ export function MapWorkspace({
}
const areaIdForSelection = (bbox: VectorSelectionBBox | null): string | undefined => (
bbox
&& selectedMapArea
&& selectedAreaBbox
&& bboxesEqual(bbox, selectedAreaBbox)
? selectedMapArea.id
: undefined
bbox && selectedMapArea ? selectedMapArea.id : undefined
)
const startBboxSelection = () => {
@@ -1178,7 +1173,7 @@ export function MapWorkspace({
setSelectionBbox(bbox)
setFirstSelectionCorner(null)
setBboxSelectionMode(false)
void analyzeSelection(bbox)
void analyzeSelection(bbox, areaIdForSelection(bbox))
}
const runAreaExtract = () => {
@@ -1387,7 +1382,7 @@ export function MapWorkspace({
const handleMapBboxSelect = (bbox: VectorSelectionBBox) => {
setFirstSelectionCorner(null)
setBboxSelectionMode(false)
void analyzeSelection(bbox)
void analyzeSelection(bbox, areaIdForSelection(bbox))
}
const runQuickAoiExtract = () => {