From 0c75d986c2c4696c1e900ade5c097403b98dd7a2 Mon Sep 17 00:00:00 2001 From: TianXuan Developer Date: Sat, 25 Jul 2026 10:35:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=B0=E5=9B=BE=E6=8B=96=E5=8A=A8/?= =?UTF-8?q?=E7=BC=A9=E6=94=BE=E6=97=B6=E6=B5=81=E9=87=8F=E8=BE=B9=E5=AE=9E?= =?UTF-8?q?=E6=97=B6=E8=B7=9F=E9=9A=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - moveend事件清空边坐标缓存+立即重绘 - 不每帧重复绑定handler Co-Authored-By: Claude --- simple_analysis/templates/simple_analysis/simple_analysis.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/simple_analysis/templates/simple_analysis/simple_analysis.html b/simple_analysis/templates/simple_analysis/simple_analysis.html index 5ad1355..89ff71f 100644 --- a/simple_analysis/templates/simple_analysis/simple_analysis.html +++ b/simple_analysis/templates/simple_analysis/simple_analysis.html @@ -2672,6 +2672,7 @@ function loadTrafficData() { document.getElementById('saTrafficSlider').value = 0; document.getElementById('saTrafficInfo').textContent = (d.windows||[]).length + ' 窗口 · ' + Object.keys(d.nodes_coords||{}).length + ' 节点 · 跨度' + ((maxTs-minTs)/60).toFixed(0) + 'min'; + SA.map.off('moveend.flowCache').on('moveend.flowCache', () => { _trafficEdgeCache = {}; }); document.getElementById('saTrafficTime').textContent = tsToBJ(_trafficCurrentTime); trafficStart(); }) @@ -2847,8 +2848,6 @@ function renderTrafficCrossfade() { } }); - SA.map.off('moveend.flowCache').on('moveend.flowCache', () => { _trafficEdgeCache = {}; }); - if (SA.pointLayer && !SA._clusterFocus) { SA.pointLayer.getLayers().forEach(l => { if (!l.setStyle) return;