Center map on selected work area
GeoIntel release gates / Compile, test, contracts and builds (push) Canceled after 0s
GeoIntel release gates / Python and npm vulnerability policy (push) Canceled after 0s
GeoIntel release gates / GIS image, SBOM and container scan (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-19 02:21:06 +02:00
parent 5f15753247
commit c97cb5bdd3
4 changed files with 15 additions and 2 deletions
+3
View File
@@ -38,6 +38,9 @@
the workbench, so national Statbel 2025 population data is no longer the workbench, so national Statbel 2025 population data is no longer
mislabeled as a 2019 thematic raster. Selection-bounded SPW/UrbIS results mislabeled as a 2019 thematic raster. Selection-bounded SPW/UrbIS results
remain available through the exact on-demand acquisition path. remain available through the exact on-demand acquisition path.
- Made a changed work area take viewport priority over a complete national
layer, so switching between Belgium, Wallonia, Brussels and the North Sea
visibly centers the map on the selected geography.
## Autonomous Belgium and North Sea RC program (2026-07-17) ## Autonomous Belgium and North Sea RC program (2026-07-17)
@@ -48,6 +48,8 @@ def test_map_rectangle_drag_is_wired_to_automatic_analysis() -> None:
assert "resizeObserver.observe(containerRef.current)" in geomap assert "resizeObserver.observe(containerRef.current)" in geomap
assert "fitDataOnChangeRef.current" in geomap assert "fitDataOnChangeRef.current" in geomap
assert "map.fitBounds(bounds, { padding: 40, duration: 0 })" in geomap assert "map.fitBounds(bounds, { padding: 40, duration: 0 })" in geomap
assert "const areaChanged = lastFittedAreaRef.current !== areaData" in geomap
assert "areaChanged && areaData" in geomap
assert "resizeObserver.disconnect()" in geomap assert "resizeObserver.disconnect()" in geomap
assert ".workbench-main .geo-map-canvas .map-container" in styles assert ".workbench-main .geo-map-canvas .map-container" in styles
assert "position: absolute;" in styles assert "position: absolute;" in styles
+3
View File
@@ -44,6 +44,9 @@
on-demand placeholders. National Statbel 2025 population is now presented on-demand placeholders. National Statbel 2025 population is now presented
as the active source, while selection-bounded PICC/UrbIS acquisitions remain as the active source, while selection-bounded PICC/UrbIS acquisitions remain
available only through an exact bounded request. available only through an exact bounded request.
- Live browser verification found that a changed work area was fitted together
with the complete active national layer. Area changes now fit the selected
geography first; subsequent layer changes retain the existing fit behavior.
- Focused backend and frontend suites passed before full release validation; - Focused backend and frontend suites passed before full release validation;
full local and Tower evidence follows in the final P5 gate. full local and Tower evidence follows in the final P5 gate.
+7 -2
View File
@@ -500,8 +500,13 @@ function GeoMap({
) )
} }
const activeCollection = fitDataOnChange ? mergeFeatureCollections([areaData, data]) : areaData const areaChanged = lastFittedAreaRef.current !== areaData
const shouldFitArea = fitDataOnChange || lastFittedAreaRef.current !== areaData const activeCollection = areaChanged && areaData
? areaData
: fitDataOnChange
? mergeFeatureCollections([areaData, data])
: areaData
const shouldFitArea = fitDataOnChange || areaChanged
if (activeCollection && shouldFitArea) { if (activeCollection && shouldFitArea) {
const bounds = collectCoordinates(activeCollection) const bounds = collectCoordinates(activeCollection)
if (bounds) { if (bounds) {