@mytec: push back before 10.3.2

This commit is contained in:
lazard36
2026-01-30 16:52:41 +00:00
parent 176df9ddaf
commit f948ff8b07
227 changed files with 11 additions and 3 deletions

View File

@@ -35,8 +35,12 @@ export default function CoverageBoundary({
// Compute boundary paths grouped by site
const boundaryPaths = useMemo(() => {
if (!visible || points.length === 0) return [];
console.log('[CoverageBoundary] Computing:', { visible, pointsCount: points.length, resolution });
if (!visible || points.length === 0) {
console.log('[CoverageBoundary] SKIP - not visible or no points');
return [];
}
// Group points by siteId
const bySite = new Map<string, CoveragePoint[]>();
for (const p of points) {
@@ -56,7 +60,9 @@ export default function CoverageBoundary({
paths.push(edgePath);
}
}
console.log('[CoverageBoundary] Paths:', paths.length);
return paths;
}, [points, visible, resolution]);
@@ -70,6 +76,8 @@ export default function CoverageBoundary({
if (!visible || boundaryPaths.length === 0) return;
console.log('[CoverageBoundary] RENDERING polylines:', boundaryPaths.length);
const group = L.layerGroup();
for (const path of boundaryPaths) {