diff --git a/templates/index.html b/templates/index.html index 453a7d5..e3c6bf4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -676,21 +676,7 @@ const data = await res.json(); const meta = data.meta || {}; const images = data.images || {}; - var ts = meta.timestamp_local || '未知'; - var z = meta.z != null ? meta.z : null; - var y = meta.y != null ? meta.y : null; - var x = meta.x != null ? meta.x : null; - var b = meta.bounds || {}; - var west = (typeof b.west === 'number') ? b.west : null; - var south = (typeof b.south === 'number') ? b.south : null; - var east = (typeof b.east === 'number') ? b.east : null; - var north = (typeof b.north === 'number') ? b.north : null; - var html = '
' - + '
时间(南宁):'+ts+'
' - + (z!=null && y!=null && x!=null ? ('
Tile z/y/x:'+z+'/'+y+'/'+x+'
') : '') - + ((west!=null && south!=null && east!=null && north!=null) ? ('
CMA BIN 边界:['+west.toFixed(4)+', '+south.toFixed(4)+'] ~ ['+east.toFixed(4)+', '+north.toFixed(4)+']
') : '') - + '
'; - infoEl.innerHTML = html; + infoEl.textContent = '时间: ' + (meta.timestamp_local || '未知'); window.RadarLatestImages = images; setRadarImage('china'); bindRadarTabs(); @@ -734,7 +720,7 @@ window.RadarLatestGrid = data; renderPlotlyHeat(data); renderClustersPanel(); - //renderMethodNote(); + renderMethodNote(); renderWindResults(); } @@ -891,10 +877,10 @@ function renderMethodNote(){ root.appendChild(sec); parent = sec; } - var html = '
10m
'; + var html = '
风场查询结果(彩云 10m 实况)
'; // cluster summary if (clusters.length) { - html += '
云团:
'; + html += '
云团汇总:
'; html += '
'; clusters.forEach(function(cl){ html += '
' @@ -910,7 +896,7 @@ function renderMethodNote(){ (cands||[]).forEach(function(co){ candByCluster[co.cluster_id] = co; }); var comings = (clusters||[]).filter(function(cl){ return cl.coming; }); if (comings.length) { - html += '
朝向云团
'; + html += '
朝向云团(极坐标计算明细)
'; comings.forEach(function(cl){ var co = candByCluster[cl.cluster_id] || {}; var w = co.wind || {};