[object Object]

← back to Commercialrealestate

map: popup shows residential lifecycle — status (Active/In Escrow/Sold/Withdrawn) + days-on-market tags

c71fc8de0e7d088971ad00faa62b1a4140c878f1 · 2026-07-10 08:16:28 -0700 · Steve Abrams

Files touched

Diff

commit c71fc8de0e7d088971ad00faa62b1a4140c878f1
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Fri Jul 10 08:16:28 2026 -0700

    map: popup shows residential lifecycle — status (Active/In Escrow/Sold/Withdrawn) + days-on-market tags
---
 public/map.html | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/public/map.html b/public/map.html
index b6e114c..74a2750 100644
--- a/public/map.html
+++ b/public/map.html
@@ -138,6 +138,8 @@ function popupHtml(p){
   return `<div class="pop"><h3>${p.address||'(address n/a)'}</h3><div class="ad">${p.city||''} ${p.zip||''}</div>`+
     `<div class="row"><span class="tag" style="border-color:${COLORS[p.type]||'#888'}">${p.type}</span>`+
     (p.price?`<span class="tag price">${money(p.price)}</span>`:'')+
+    (p.rstatus?`<span class="tag" style="border-color:${statusColor(p)};color:${statusColor(p)}">${p.rstatus}</span>`:'')+
+    (p.dom!=null&&isFinite(+p.dom)?`<span class="tag" title="Days on market (Redfin)">${p.dom}d on mkt</span>`:'')+
     ((s=>s!=null?`<span class="tag" style="border-color:${DealScore.scoreColor(s)};color:${DealScore.scoreColor(s)}" title="Unified Deal Score (0-100): blend of pro-forma rent yield, cap rate, DSCR-readiness, and assumable bonus. A screen, not an appraisal.">⬡ Deal ${s}</span>`:'')(scoreFor(p)))+
     (p.assum?`<span class="tag" style="border-color:#34d399;color:#34d399" title="HEURISTIC estimate from property type/era — NOT title-verified. Confirm the recorded deed of trust shows an assumable FHA/VA loan before relying on it.">🔑 Assumable FHA/VA?${p.assum.rate?` · est ~${(+p.assum.rate).toFixed(2)}%`:''}${p.assum.lk==='high'?' (high)':''}</span>`:'')+
     `</div>`+

← a8e7f8a auto-save: 2026-07-10T08:14:41 (1 files) — data/condos-redfi  ·  back to Commercialrealestate  ·  auto-save: 2026-07-10T08:44:50 (3 files) — data/condos-redfi 5aaf9b2 →