fix(map): bound overview feature payloads
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user