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
+7 -2
View File
@@ -500,8 +500,13 @@ function GeoMap({
)
}
const activeCollection = fitDataOnChange ? mergeFeatureCollections([areaData, data]) : areaData
const shouldFitArea = fitDataOnChange || lastFittedAreaRef.current !== areaData
const areaChanged = lastFittedAreaRef.current !== areaData
const activeCollection = areaChanged && areaData
? areaData
: fitDataOnChange
? mergeFeatureCollections([areaData, data])
: areaData
const shouldFitArea = fitDataOnChange || areaChanged
if (activeCollection && shouldFitArea) {
const bounds = collectCoordinates(activeCollection)
if (bounds) {