@mytec: push back before 10.3.2
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user