Lead location labels with neighbourhood; drop ±7-day window jargon (#18)
Reverse-geocode at zoom 14 and prefer neighbourhood/suburb ahead of the
city so labels read 'Gowanus, New York' when OSM has that detail, falling
back to the city (and county) when it doesn't.
Replace the recurring '±7-day window' phrasing in the UI with plain
language ('a typical day', 'days around this date', 'typical climate').
This commit is contained in:
parent
e1e3f914d6
commit
313a593a44
3 changed files with 6 additions and 6 deletions
|
|
@ -132,7 +132,7 @@ function render(data) {
|
|||
<div class="loc-title">
|
||||
<h2>${placeLabel(data)}</h2>
|
||||
<p class="meta">${data.place ? coords + " · " : ""}~${cell.area_sq_mi} sq mi cell · climatology from ${yrs}
|
||||
(${c.n_samples.toLocaleString()} days in the ±7-day window)</p>
|
||||
(${c.n_samples.toLocaleString()} days around this date)</p>
|
||||
</div>
|
||||
<div class="share">
|
||||
<button id="btn-link" title="Copy a link back to this exact view">${IC.link} Copy link</button>
|
||||
|
|
@ -147,7 +147,7 @@ function render(data) {
|
|||
</span>
|
||||
<span class="cta-cal-arrow" aria-hidden="true">→</span>
|
||||
</a>
|
||||
<div class="section-title">${data.target_date} vs normal (±7 days) — tap a metric for the full breakdown</div>
|
||||
<div class="section-title">${data.target_date} vs a typical day — tap a metric for the full breakdown</div>
|
||||
<div class="normals">
|
||||
${cmpCard("High", "tmax", c.tmax, fmtTemp)}
|
||||
${cmpCard("Low", "tmin", c.tmin, fmtTemp)}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<span class="logo">▚</span>
|
||||
<div>
|
||||
<h1>Thermograph · Day</h1>
|
||||
<p class="tag">Every percentile boundary for one day vs its ±7-day climate window</p>
|
||||
<p class="tag">Every percentile boundary for one day vs its typical climate</p>
|
||||
</div>
|
||||
<nav class="view-nav" aria-label="Views">
|
||||
<a href="./" data-view="map">Weekly</a>
|
||||
|
|
@ -42,7 +42,7 @@
|
|||
<div id="day-head" class="cal-head" hidden></div>
|
||||
<div class="placeholder" id="day-placeholder">
|
||||
<p>Pick a place and a day — or open this from a day on the map or calendar — to see
|
||||
the value at every tier boundary in that day's ±7-day climate window.</p>
|
||||
the value at every tier boundary for that day's typical climate.</p>
|
||||
</div>
|
||||
<div id="day-body"></div>
|
||||
</main>
|
||||
|
|
|
|||
|
|
@ -137,8 +137,8 @@ function render(data) {
|
|||
dayHead.innerHTML = `
|
||||
<h2>${nice}</h2>
|
||||
${wt ? `<p class="day-weather">${wt.icon} ${wt.text}</p>` : ""}
|
||||
<p class="meta">${place} · ~${cell.area_sq_mi} sq mi cell · ±7-day window
|
||||
· ${d.n_samples.toLocaleString()} days (${yrs})</p>`;
|
||||
<p class="meta">${place} · ~${cell.area_sq_mi} sq mi cell
|
||||
· ${d.n_samples.toLocaleString()} days around this date (${yrs})</p>`;
|
||||
|
||||
dayBody.innerHTML = [
|
||||
ladderCard("Daily high", d.metrics.tmax, fmtTemp, "temp"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue