fix(map): bound overview feature payloads
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-21 23:03:58 +02:00
parent 20ec8ad6b2
commit db96404218
5 changed files with 24 additions and 4 deletions
@@ -117,6 +117,13 @@ export function persistedDatasetSupportsSelection(
return scale === 'detail'
}
export function selectionFeatureLimit(bbox: VectorSelectionBBox): number {
const scale = selectionAnalysisScale(bbox)
if (scale === 'overview') return 25
if (scale === 'regional') return 250
return 1000
}
export function splitSelectionBbox(
bbox: VectorSelectionBBox,
maxTileSideMetres = 18_000,