garage44.eu/jeroen/cartopolis

logclone: git clone https://garage44.eu/jeroen/cartopolis.git

.. /docs/mockups/field-check/v1.html

raw

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Cartopolis — field check v1: one tap, two pictures</title>
<link rel="stylesheet" href="style.css">
<style>
:root { --ok:#9fd3b4; --okbg:rgba(159,211,180,.16); --warn:#ffcf7a; }
body { width:1840px; }
.essence { font-size:25px; line-height:1.32; color:var(--cream); max-width:1500px; margin:16px 0 30px; letter-spacing:-.2px; }
.essence b { color:var(--brand); font-weight:inherit; }
.rules { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-bottom:44px; }
.rules div { background:var(--surface); border:1px solid var(--gline); border-radius:16px; padding:18px 20px; }
.rules h3 { color:var(--cream); font-size:17px; margin-bottom:6px; }
.rules h3 span { color:var(--brand); margin-right:6px; }
.rules p { color:var(--dim); font-size:14px; }
.rules i { color:var(--text); font-style:normal; }
.new { font-size:10.5px; padding:1px 6px; border-radius:6px; background:rgba(253,96,18,.2); color:#ffb48a; vertical-align:1px; margin-left:4px; }

/* the agent */
.agent { background:#2c3f47; }
.thead .who b .bot { display:inline; vertical-align:2px; font-size:10.5px; color:var(--accent); background:var(--hover); border-radius:6px; padding:0 6px; margin-left:6px; }

/* attach sheet */
.attach { position:absolute; left:10px; right:10px; bottom:86px; z-index:6; background:var(--glass); backdrop-filter:blur(16px); border:1px solid var(--gline); border-radius:20px; padding:10px; display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
.attach div { display:flex; flex-direction:column; align-items:center; gap:6px; font-size:12px; color:var(--dim); padding:8px 2px; border-radius:14px; text-align:center; }
.attach .ic { width:46px; height:46px; border-radius:14px; background:var(--raised); border:1px solid var(--gline); display:grid; place-items:center; color:var(--text); }
.attach .hot { background:rgba(253,96,18,.12); color:var(--cream); }
.attach .hot .ic { background:var(--brand); color:#fff; border-color:transparent; }
.scrim { position:absolute; inset:0; background:rgba(5,8,9,.45); z-index:5; }

/* capture */
.cam { position:absolute; inset:0; background-size:cover; background-position:center; }
.cam::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.45) 0, transparent 20%, transparent 70%, rgba(0,0,0,.6) 100%); }
.ghost-layer { position:absolute; inset:0; background-size:cover; background-position:center; opacity:.42; mix-blend-mode:normal; z-index:1; }
.chips { position:absolute; top:52px; left:12px; right:12px; z-index:4; display:flex; flex-wrap:wrap; gap:6px; }
.chips .chip { position:static; }
.chip.ok { color:var(--ok); border-color:rgba(159,211,180,.4); }
.chip.warn { color:var(--warn); border-color:rgba(255,207,122,.4); }
.dot { width:7px; height:7px; border-radius:50%; background:currentColor; }
.pip { position:absolute; right:12px; top:128px; width:112px; height:199px; border-radius:14px; background-size:cover; background-position:center; z-index:4; border:2px solid #fff; box-shadow:0 8px 20px rgba(0,0,0,.5); }
.pip span { position:absolute; left:6px; bottom:6px; font-size:10.5px; color:#fff; background:rgba(10,14,16,.75); padding:1px 6px; border-radius:6px; }
.camctl { position:absolute; left:0; right:0; bottom:34px; z-index:4; display:flex; justify-content:space-between; align-items:center; padding:0 34px; }
.shutter { width:74px; height:74px; border-radius:50%; border:4px solid #fff; display:grid; place-items:center; }
.shutter div { width:58px; height:58px; border-radius:50%; background:#fff; position:relative; overflow:hidden; }
.shutter div::after { content:""; position:absolute; right:0; top:0; bottom:0; width:50%; background:var(--brand); }
.round { width:48px; height:48px; border-radius:50%; background:rgba(10,14,16,.6); border:1px solid var(--gline); display:grid; place-items:center; color:#fff; position:relative; }
.round.on { background:var(--accent); color:var(--ink); }
.round small { position:absolute; bottom:-18px; font-size:10.5px; color:#fff; white-space:nowrap; }
.ghostbar { position:absolute; left:34px; right:34px; bottom:132px; z-index:4; display:flex; align-items:center; gap:10px; font-size:11.5px; color:#fff; }
.ghostbar .track { flex:1; height:4px; border-radius:2px; background:rgba(255,255,255,.3); position:relative; }
.ghostbar .track::before { content:""; position:absolute; left:0; top:0; bottom:0; width:42%; background:#fff; border-radius:2px; }
.ghostbar .track::after { content:""; position:absolute; left:42%; top:50%; width:16px; height:16px; border-radius:50%; background:#fff; transform:translate(-50%,-50%); }
.tip { position:absolute; left:12px; right:12px; bottom:196px; z-index:4; text-align:center; font-size:12px; color:#fff; text-shadow:0 1px 3px #000; }
.close { position:absolute; left:14px; top:50px; z-index:5; }

/* selfie stand-in */
.selfie { position:absolute; inset:0; background:radial-gradient(ellipse 60% 40% at 50% 45%, #5a4a44 0, #3a312e 45%, transparent 46%), linear-gradient(180deg, #8fb3cf 0, #b9c6cc 40%, #7f6a5c 41%, #5d4c42 100%); }
.selfie .head { position:absolute; left:50%; top:30%; width:150px; height:190px; border-radius:50% 50% 46% 46%; background:#c79c84; transform:translateX(-50%); }
.selfie .body { position:absolute; left:50%; top:52%; width:290px; height:330px; border-radius:140px 140px 0 0; background:#33505f; transform:translateX(-50%); }
.selfie .lbl { position:absolute; left:50%; top:44%; transform:translateX(-50%); color:rgba(0,0,0,.45); font-size:12px; z-index:2; }

/* the pair, in the thread */
.pair { align-self:flex-end; width:300px; background:var(--accent); color:var(--ink); border-radius:18px; border-bottom-right-radius:6px; overflow:hidden; }
.pair .imgs { display:grid; grid-template-columns:1fr 1fr; gap:2px; height:200px; background:var(--ink); }
.pair .imgs div { background-size:cover; background-position:center; position:relative; }
.pair .imgs span { position:absolute; left:6px; top:6px; font-size:10.5px; color:#fff; background:rgba(10,14,16,.72); padding:1px 6px; border-radius:6px; }
.pair .meta { padding:8px 11px 4px; font-size:12.5px; }
.pair .meta b { font-weight:inherit; display:block; font-size:14px; }
.pair .meta .q { display:flex; gap:6px; flex-wrap:wrap; margin-top:5px; }
.pair .meta .q span { background:rgba(10,14,16,.1); border-radius:6px; padding:1px 6px; font-size:11px; }
.pair .btns { display:flex; gap:6px; padding:6px 10px 10px; }
.pair .btns div { flex:1; text-align:center; background:var(--ink); color:var(--cream); border-radius:10px; padding:6px; font-size:12.5px; }
.pair small { text-align:right; display:block; font-size:10.5px; opacity:.6; padding:0 11px 6px; }
.m.them ol { margin:4px 0 0 18px; }
#reply { font-size:13.5px; max-width:86%; }
.m.them li { margin-bottom:3px; }

/* compare */
.wipe { position:absolute; inset:0; }
.wipe .a, .wipe .b { position:absolute; inset:0; background-size:cover; background-position:center; }
.wipe .b { clip-path:inset(0 0 0 52%); }
.wipe .line { position:absolute; top:0; bottom:0; left:52%; width:3px; background:#fff; z-index:2; box-shadow:0 0 8px rgba(0,0,0,.5); }
.wipe .knob { position:absolute; left:52%; top:50%; width:40px; height:40px; border-radius:50%; background:#fff; transform:translate(-50%,-50%); z-index:3; display:grid; place-items:center; color:var(--ink); font-size:14px; }
.wipe .tl { position:absolute; top:112px; z-index:3; font-size:12px; color:#fff; background:rgba(10,14,16,.75); padding:3px 9px; border-radius:8px; }
.posebar { position:absolute; left:0; right:0; bottom:0; z-index:4; background:var(--glass); backdrop-filter:blur(16px); border-top:1px solid var(--gline); border-top-left-radius:22px; border-top-right-radius:22px; padding:12px 16px 30px; }
.posebar h4 { color:var(--cream); font-size:15px; font-weight:inherit; }
.posebar p { color:var(--dim); font-size:12px; margin-top:2px; }
.posebar .actions { padding:10px 0 0; }

.bottom { display:grid; grid-template-columns:1.15fr 1fr 1fr; gap:18px; margin-top:52px; }
.bottom > div { background:var(--surface); border:1px solid var(--gline); border-radius:16px; padding:18px 20px; }
.bottom h3 { color:var(--cream); font-size:16px; margin-bottom:8px; }
.bottom li { color:var(--dim); font-size:13.5px; margin:0 0 7px 18px; }
.bottom li b { color:var(--text); font-weight:inherit; }
pre { background:var(--ink); border:1px solid var(--gline); border-radius:12px; padding:12px 14px; font:12.5px/1.5 ui-monospace, monospace; color:var(--text); margin-top:8px; }
pre i { color:var(--line); font-style:normal; }
.credit { color:var(--line); font-size:12px; margin-top:28px; }
</style>
</head>
<body>
<svg width="0" height="0" style="position:absolute">
  <symbol id="back" viewBox="0 0 24 24"><path d="M15 5l-7 7 7 7"/></symbol>
  <symbol id="plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></symbol>
  <symbol id="mic" viewBox="0 0 24 24"><rect x="9" y="3.5" width="6" height="11" rx="3"/><path d="M5.5 11a6.5 6.5 0 0013 0M12 17.5V21"/></symbol>
  <symbol id="x" viewBox="0 0 24 24"><path d="M6 6l12 12M18 6L6 18"/></symbol>
  <symbol id="photo" viewBox="0 0 24 24"><rect x="3.5" y="5" width="17" height="14" rx="2"/><circle cx="9" cy="10" r="1.8"/><path d="M4 17l5-5 4 4 3-3 4 4"/></symbol>
  <symbol id="pin" viewBox="0 0 24 24"><path d="M12 21s-6.5-6.2-6.5-11A6.5 6.5 0 0118.5 10c0 4.8-6.5 11-6.5 11z"/><circle cx="12" cy="10" r="2.3"/></symbol>
  <symbol id="loc" viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M12 2v3M12 19v3M2 12h3M19 12h3"/><circle cx="12" cy="12" r="7"/></symbol>
  <symbol id="twin" viewBox="0 0 24 24"><rect x="2.5" y="6" width="9" height="13" rx="1.6"/><path d="M14.5 6l7 3v10l-7-3z"/><path d="M14.5 6v10"/></symbol>
  <symbol id="flip" viewBox="0 0 24 24"><path d="M4 9a8 8 0 0114-3l2 2M20 15a8 8 0 01-14 3l-2-2"/><path d="M20 4v4h-4M4 20v-4h4"/></symbol>
  <symbol id="ghost" viewBox="0 0 24 24"><rect x="3.5" y="4.5" width="12" height="12" rx="1.5"/><rect x="8.5" y="7.5" width="12" height="12" rx="1.5" stroke-dasharray="2 2"/></symbol>
  <symbol id="world" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8.5"/><path d="M3.5 12h17M12 3.5c2.6 2.6 2.6 14.4 0 17M12 3.5c-2.6 2.6-2.6 14.4 0 17"/></symbol>
  <symbol id="wipe" viewBox="0 0 24 24"><rect x="3.5" y="4.5" width="17" height="15" rx="2"/><path d="M12 4.5v15"/></symbol>
</svg>

<h1>Cartopolis — <b>field check v1: one tap, two pictures</b></h1>
<p class="essence">On a walk with the RTK receiver, one tap in a chat takes <b>two pictures from the same spot</b>: the phone's camera, and Cartopolis drawn from exactly that position, heading and lens. They arrive in the chat as one message, so whoever is on the other end, a person or the agent, can say what the world gets wrong <i style="font-style:normal;color:var(--cream)">there</i>.</p>

<div class="rules">
  <div><h3><span>1</span>The shutter takes both</h3><p>No separate screenshot step. The pose is read at the instant of the photo, and the render is made from that pose, so the two can't drift apart while you walk.</p></div>
  <div><h3><span>2</span>The render follows the lens</h3><p>Rear camera: Cartopolis looks where the phone points. Front camera: it turns round, and looks at what is behind you. <i>Flip</i> switches both together.</p></div>
  <div><h3><span>3</span>The pose travels with it</h3><p>Position and its accuracy, heading, tilt and lens go in the message. The agent can re-render the same view itself, with layers off or the aerial beside it, instead of trusting one picture.</p></div>
</div>

<div class="row">

<!-- A. START FROM THE CHAT -->
<div class="shot">
<div class="phone">
  <div class="status"><span>14:02</span><div class="notch"></div><span>●●● 71%</span></div>
  <div class="thead"><svg class="i"><use href="#back"/></svg><div class="av sm agent">vf</div><div class="who"><b>viberfox<span class="bot">agent</span></b><span><span class="live"></span>field walk · Grote Markt</span></div></div>
  <div class="msgs">
    <div class="day">Today</div>
    <div class="m me">Walking the Grote Markt with the RTK. I'll send you checks as I go.<small>13:58</small></div>
    <div class="m them">Good. Point at whatever looks wrong; I'll compare and file what's off.<small>13:58</small></div>
  </div>
  <div class="scrim"></div>
  <div class="attach">
    <div><div class="ic"><svg class="i"><use href="#photo"/></svg></div>Photo</div>
    <div><div class="ic"><svg class="i"><use href="#pin"/></svg></div>Point</div>
    <div class="hot"><div class="ic"><svg class="i"><use href="#twin"/></svg></div>Field check<span class="new" style="margin:0">new</span></div>
    <div><div class="ic"><svg class="i"><use href="#loc"/></svg></div>Location</div>
  </div>
  <div class="composer" style="z-index:6"><div class="circ hot"><svg class="i"><use href="#x"/></svg></div><div class="field">Message</div><div class="circ"><svg class="i"><use href="#mic"/></svg></div></div>
</div>
<h2><span>A</span>From any chat</h2>
<ul>
  <li><b style="color:var(--text);font-weight:inherit">+</b> gets one new entry, <b style="color:var(--text);font-weight:inherit">Field check</b>, beside Photo and Point.</li>
  <li>Here the chat is with the agent, but it's an ordinary chat: a person can get one too.</li>
</ul>
</div>

<!-- B. REAR CAMERA -->
<div class="shot">
<div class="phone">
  <div class="cam" style="background-image:url(photo.jpg)"></div>
  <div class="ghost-layer" style="background-image:url(render-north.jpg)"></div>
  <div class="status"><span>14:03</span><div class="notch"></div><span>●●● 71%</span></div>
  <div class="chips" style="top:88px">
    <div class="chip ok"><span class="dot"></span>RTK fixed · 1.2 cm</div>
    <div class="chip warn">heading 9° ± 3°</div>
    <div class="chip">tilt 14°</div>
  </div>
  <div class="round close" style="width:38px;height:38px"><svg class="i"><use href="#x"/></svg></div>
  <div class="pip" style="background-image:url(render-north.jpg)"><span>Cartopolis</span></div>
  <div class="tip">Ghost: Cartopolis laid over the camera, to line it up</div>
  <div class="ghostbar"><svg class="i s"><use href="#ghost"/></svg><div class="track"></div><span>42%</span></div>
  <div class="camctl">
    <div class="round on"><svg class="i"><use href="#ghost"/></svg><small>ghost</small></div>
    <div class="shutter"><div></div></div>
    <div class="round"><svg class="i"><use href="#flip"/></svg><small>rear</small></div>
  </div>
</div>
<h2><span>B</span>Rear camera: where the phone points <span class="new">new</span></h2>
<ul>
  <li>The live render sits in the corner and follows the phone. Tap it to swap which is big.</li>
  <li><b style="color:var(--text);font-weight:inherit">Ghost</b> lays the render over the camera. Edges that don't line up show the heading error before you shoot.</li>
  <li>The chips are the quality of this pose; amber means a picture can still be taken, but read the heading loosely.</li>
</ul>
</div>

<!-- C. FRONT CAMERA -->
<div class="shot">
<div class="phone">
  <div class="selfie"><div class="body"></div><div class="head"></div><div class="lbl" style="top:40%">front camera (stand-in)</div></div>
  <div class="status" style="color:#111"><span>14:05</span><div class="notch"></div><span>●●● 70%</span></div>
  <div class="chips" style="top:88px">
    <div class="chip ok"><span class="dot"></span>RTK fixed · 1.4 cm</div>
    <div class="chip warn">heading 189° ± 3°</div>
  </div>
  <div class="round close" style="width:38px;height:38px"><svg class="i"><use href="#x"/></svg></div>
  <div class="pip" style="background-image:url(render-south.jpg)"><span>behind you</span></div>
  <div class="camctl">
    <div class="round"><svg class="i"><use href="#ghost"/></svg><small>ghost</small></div>
    <div class="shutter"><div></div></div>
    <div class="round on"><svg class="i"><use href="#flip"/></svg><small>front</small></div>
  </div>
</div>
<h2><span>C</span>Front camera: what's behind you <span class="new">new</span></h2>
<ul>
  <li>Flip turns the render round with the lens: same spot, heading + 180°.</li>
  <li>The render is drawn without your avatar: Cartopolis looks out from where you stand.</li>
  <li>For "I'm here, and this is what it looks like behind me", or a façade you can only stand with your back to.</li>
</ul>
</div>

<!-- D. IN THE CHAT -->
<div class="shot">
<div class="phone">
  <div class="status"><span>14:04</span><div class="notch"></div><span>●●● 71%</span></div>
  <div class="thead"><svg class="i"><use href="#back"/></svg><div class="av sm agent">vf</div><div class="who"><b>viberfox<span class="bot">agent</span></b><span><span class="live"></span>field walk · Grote Markt</span></div></div>
  <div class="msgs">
    <div class="pair">
      <div class="imgs"><div style="background-image:url(photo.jpg)"><span>Real</span></div><div style="background-image:url(render-north.jpg)"><span>Cartopolis</span></div></div>
      <div class="meta"><b>Martinitoren from the Grote Markt</b>
        <div class="q"><span>RTK 1.2 cm</span><span>↑ 9° ± 3°</span><span>tilt 14°</span><span>rear · 26 mm</span></div></div>
      <div class="btns"><div>Compare</div><div>Open in world</div></div>
      <small>14:03</small>
    </div>
    <div class="m them" id="reply">Three things:<ol><li>The Martinitoren is drawn as a stepped brick block with flat windows. It's grey stone, open Gothic arches, a green copper top.</li><li>The fountain and the café terrace aren't in the world.</li><li>The trees in front of the tower aren't in your photo. With 3° of heading that's not certain, so I'll check the aerial before filing it.</li></ol><small>14:04</small></div>
  </div>
  <div class="composer"><div class="circ"><svg class="i"><use href="#plus"/></svg></div><div class="field">Message</div><div class="circ hot"><svg class="i"><use href="#mic"/></svg></div></div>
</div>
<h2><span>D</span>One message, two pictures <span class="new">new</span></h2>
<ul>
  <li>A new message kind: the pair plus the pose. <b style="color:var(--text);font-weight:inherit">Compare</b> opens a wipe between them; <b style="color:var(--text);font-weight:inherit">Open in world</b> stands you there, like a point.</li>
  <li>The reply here is a real comparison of these two pictures, not made up for the mockup.</li>
</ul>
</div>

</div>

<div class="bottom">
  <div>
    <h3>What the message carries</h3>
    <pre>{ <i>"camera"</i>:   "rear",
  <i>"taken"</i>:    "2026-10-15T12:03:11Z",
  <i>"position"</i>: { "lat": 53.21830, "lng": 6.56790,
              "height_m": 1.6, "fix": "rtk_fixed",
              "accuracy_m": 0.012 },
  <i>"attitude"</i>: { "heading": 9.0, "pitch": 14.0, "roll": 0.4,
              "heading_accuracy": 3.0 },
  <i>"lens"</i>:     { "fov_y": 68.0, "source": "camera2" },
  <i>"photo"</i>: "…jpg",  <i>"render"</i>: "…jpg" }</pre>
    <ul style="margin-top:10px">
      <li><b>The agent doesn't need the render to be right:</b> from the pose it can shoot the same view itself (<code>--shot --at … --look …</code>), with layers off, or with <code>--aerial-reference</code> beside it.</li>
    </ul>
  </div>
  <div>
    <h3>Already in the app</h3>
    <ul>
      <li><b>The RTK receiver</b> as a position source, with its accuracy.</li>
      <li><b>Both cameras</b> through Camera2: the front one for calls, the back one (greyscale) for precise tracking, with the lens read from the phone.</li>
      <li><b>The phone's attitude</b> (heading, tilt) from the orientation sensors.</li>
      <li><b>Pictures in chats</b>, and an agent account that can read and answer a chat.</li>
      <li><b>Rendering a given pose off-screen</b>, in the shot harness, desktop and headless only.</li>
    </ul>
  </div>
  <div>
    <h3>New</h3>
    <ul>
      <li><b>A colour still</b> from either camera, taken in the app so the pose is read at the shutter.</li>
      <li><b>A second render on the phone</b> from the camera's pose and lens, alongside the map.</li>
      <li><b>The capture screen</b>: live corner render, ghost, flip.</li>
      <li><b>The paired message</b> and its Compare view.</li>
      <li><b>Weakest link:</b> the compass. 3° of heading is 6 m sideways at the tower's 120 m. Open question: may the ghost be dragged to line up, with the correction stored beside the measured heading?</li>
    </ul>
  </div>
</div>

<p class="credit">Real photo: "Martinitoren, Grote Markt Groningen", JAHensens, CC BY 4.0, Wikimedia Commons; it stands in for a phone picture and was not taken from the rendered pose. Renders: Cartopolis, deck-2, 2026-10-15. The front-camera picture is a drawn stand-in.</p>
</body>
</html>