From 317e12900a663ff4c1387b3430c660303a4e3462 Mon Sep 17 00:00:00 2001 From: yarnom Date: Sun, 21 Sep 2025 22:24:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E9=9B=B7=E8=BE=BE?= =?UTF-8?q?=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/index.html | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/templates/index.html b/templates/index.html index e3c6bf4..453a7d5 100644 --- a/templates/index.html +++ b/templates/index.html @@ -676,7 +676,21 @@ const data = await res.json(); const meta = data.meta || {}; const images = data.images || {}; - infoEl.textContent = '时间: ' + (meta.timestamp_local || '未知'); + 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; window.RadarLatestImages = images; setRadarImage('china'); bindRadarTabs(); @@ -720,7 +734,7 @@ window.RadarLatestGrid = data; renderPlotlyHeat(data); renderClustersPanel(); - renderMethodNote(); + //renderMethodNote(); renderWindResults(); } @@ -877,10 +891,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 += '
' @@ -896,7 +910,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 || {};