fix: moveend即时重绘+缓存清除,canvas跟随地图平移
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -2672,7 +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 = {}; });
|
||||
SA.map.off('moveend.flowCache').on('moveend.flowCache', () => { _trafficEdgeCache = {}; if (_trafficPlaying) renderTrafficCrossfade(); });
|
||||
document.getElementById('saTrafficTime').textContent = tsToBJ(_trafficCurrentTime);
|
||||
trafficStart();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user