Skip to content

Commit c715e86

Browse files
committed
www/map: default hexbin viz to circle mode
`?viz=hex` remains the opt-out. Circle mode's density-heatmap (coarse zoom) → discrete-dots (deep zoom) gradient reads better than tessellated hexes across every scope tested; making it the default so users don't have to opt in via a URL flag or the drawer toggle. Cursor still tracks via the drawer's Hex/Circle toggle for A/B use.
1 parent 3802323 commit c715e86

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

www/src/map/CrashMapSection.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,7 @@ export function CrashMapSection({
201201
// smooth `target_px(z)` curve, capped at each cell's inscribed
202202
// circle, so res transitions don't visually pop and we get
203203
// density-scaled dots (small at wide zoom, chunkier deep-zoom).
204-
const [viz, setVizUrl] = useUrlState("viz", enumParam("hex" as const, ["hex", "circle"] as const))
205-
// Keep URL absent when on default (hex) so URLs stay tidy.
206-
const setViz = (v: "hex" | "circle") => setVizUrl(v === "hex" ? "hex" : v)
204+
const [viz, setViz] = useUrlState("viz", enumParam("circle" as const, ["hex", "circle"] as const))
207205
// `hexAuto` — when true (default), hexPxTarget grows with zoom so
208206
// close-up views get chunkier, more-pickable cells; when false, the
209207
// manual slider value wins. `?ha=false` to opt out of adaptive.

0 commit comments

Comments
 (0)