From ddf7c31b6c5039ddb0dad8bc815070952a49cf46 Mon Sep 17 00:00:00 2001 From: kianiadee Date: Sat, 6 Jun 2026 10:42:37 +0300 Subject: [PATCH] style(markers): render parked pastel square ~2/3 size (still zoom-scaled) Parked squares now scale to ~0.66 of the moving-now circle (compounding with the existing zoom scaling) so they read as quieter 'recent activity' markers. Co-Authored-By: Claude Opus 4.8 --- README.md | 2 +- index.html | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index faf9358..0b21e17 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ trips** into one view for the Fireside Communications / Tracksolid fleet. address, heading, odometer, last fix, source). Markers **scale with the zoom level**. Shape encodes recency so stakeholders read activity at a glance: - **● circle** (full colour + heading arrow) — moving right now - - **■ square** (pastel colour, no arrow) — active within the last 24h, now stopped + - **■ smaller square** (pastel colour, no arrow) — active within the last 24h, now stopped - **grey ●** — offline (no fix in 24h) - **Filters** (bottom-right card) apply to the live map *instantly*: - **Number plate** — multi-select, sorted A→Z; picking a vehicle auto-fills its diff --git a/index.html b/index.html index 765cfee..8fa0901 100644 --- a/index.html +++ b/index.html @@ -203,9 +203,11 @@ } .veh-pin .idle-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.92); } /* Parked = reported within 24h ("active within 24h"): a clean PASTEL - department-coloured SQUARE (same 32px, no arrow/dot), so high-level viewers - can scan recent fleet activity by department. Moving-now stays a circle. */ - .veh-marker.parked .veh-pin { border-radius: 6px; opacity: 1; } + department-coloured SQUARE, no arrow/dot, and rendered ~⅔ the size of a + moving-now circle so it reads as a quieter "recent activity" marker. The + scale compounds with the zoom scaling on .veh-inner; transform-origin + centre keeps it on its coordinate. */ + .veh-marker.parked .veh-pin { border-radius: 6px; opacity: 1; transform: scale(0.66); transform-origin: center center; } .veh-marker.offline .veh-pin { opacity: .5; border-color: rgba(255,255,255,.4); } .veh-plate { position: absolute; top: 33px; left: 50%; transform: translateX(-50%);