Skip to content

v2: Full-page map in BetaNYC's shared map layout (#193, #194) - #196

Merged
noneck merged 2 commits into
masterfrom
feature/shared-map-193
Nov 24, 2026
Merged

noneck merged 2 commits into
masterfrom
feature/shared-map-193

Conversation

@noneck

@noneck noneck commented Nov 24, 2026

Copy link
Copy Markdown
Member

Closes #193 and #194. Part of #191. Stacked on the Agency PR (#192): merge that first, then this PR's base moves to master.

What changes: "Open full-page map" (map.html?geo=cd&id=309 and every other place) opens BetaNYC's shared map layout, after the Manhattan POPS map and SLAM's map2 (BetaNYC/SLAM#134).

  • A full-window map with a header box: BetaNYC logo, place, and a back link that keeps the filters.
  • A blue panel on the right with the shared filter form, open on wide screens and a full-screen sheet on phones.
  • A stats bar along the bottom: 311 requests, not yet closed, addresses, BoardStat's caveats, and a monthly chart stacked by agency. Selecting a month applies it.
  • Hide panel and Hide stats, with floating buttons to bring them back.
  • Requests grouped by address in DuckDB. Circles when zoomed out, piled chips when zoomed in, discs when tilted (3D). Piles are capped at 25 chips flat and 50 discs tilted, and the label gives the full total. The chip and 3D code is ported from SLAM's c311Display.js, credited in js/piles.js.
  • Colors by agency, with a legend.
  • Popups show the address, top problems, and the latest 12 requests with the agency's resolution text, read on demand. Plus "Open this address in BoardStat". The page link still never carries an address.
  • The 60,000-most-recent cap no longer applies to the map. The Brooklyn borough page loads 1,289,592 requests at 217,721 addresses.
  • Kept: the self-hosted Protomaps street map (v2: Open-source street map only #141), community and council districts and boroughs, the link format, Report a data problem, the data date and the stale-data banner.

Known limits:

  • The monthly chart reaches back only to the From date, which is what the loader holds.
  • Pile totals need the street map's fonts, so they don't show if it fails to load. Popups still give every total.

Tests (run before opening this PR):

  • node --test v2/tests-js/: 121 passed
  • cd v2/pipeline && uv run pytest: 271 passed (test_full_map.py rewritten on purpose; it also runs the per-address SQL against the fixture)
  • cd v2/tests-browser && uv run pytest: 23 passed. New test_full_map.py: apply a filter, open a popup, hide and show the panel and stats, select a month.

Approved by Noel on 2026-11-24 from a working preview of this branch with live data.

🤖 Generated with Claude Code

noneck and others added 2 commits November 24, 2026 15:17
map.html gets the shared map layout (after the Manhattan POPS map and
SLAM's map2): a full-window map, the shared filter form in a blue panel
on the right, and a stats bar along the bottom, both of which hide.
Requests are grouped by address in DuckDB: circles zoomed out, piled
chips zoomed in, discs in 3D (chip and 3D code ported from SLAM's
c311Display.js). Popups read the agency's resolution text on demand.
The stats bar has the counts, BoardStat's caveats, and a monthly chart
stacked by agency where selecting a month applies it. The 60,000-point
cap no longer applies to the map. Self-hosted street map kept.

Part of #191.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d Agency picks (2026-11-24)

Keeps #192's entry under its own title (the checker forbids dropping an
entry) and gives both entries today's date, so the site can be uploaded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@noneck
noneck changed the base branch from feature/agency-multi-192 to master November 24, 2026 20:19
@noneck
noneck merged commit 5b2ebf5 into master Nov 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v2: Full-page map in the shared layout: address piles, 3D, popups

1 participant