From aaad70a97bc9fee9629e69da7b1b1db5efa24407 Mon Sep 17 00:00:00 2001 From: Kelsey Smuczynski Date: Thu, 11 Jun 2026 12:33:35 -0600 Subject: [PATCH] feat(map): raise map layer limits for water wells and locations layers --- src/hooks/useThingLayers.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/hooks/useThingLayers.tsx b/src/hooks/useThingLayers.tsx index 1c72bde9..0f3d9ec7 100644 --- a/src/hooks/useThingLayers.tsx +++ b/src/hooks/useThingLayers.tsx @@ -33,6 +33,12 @@ const EMPTY_FEATURE_COLLECTION = { features: [], } as const +const HIGH_COUNT_LAYER_LIMITS = { +pageSize: 2000, +maxPages: 8, +maxFeatures: 15000, +} + export const useThingLayers = ( activeLayerKeys?: string[], colorMappingByLayer: Record = {} @@ -283,6 +289,7 @@ export const useThingLayers = ( label: locations.label, color: '#607d8b', enabled: locations.exists && isLayerActive('ogc-locations'), + ...HIGH_COUNT_LAYER_LIMITS, }) const latestDepthToWaterLayer = useOGCLayer({ collection: latestDepthToWater.id, @@ -349,6 +356,7 @@ export const useThingLayers = ( label: waterWells.label, color: '#2b7dc0', enabled: waterWells.exists && isLayerActive('ogc-water-wells'), + ...HIGH_COUNT_LAYER_LIMITS, }) const activelyMonitoredLayer = useOGCLayer({ collection: activelyMonitored.id,