Skip to content

Street map: no flicker of a selected site's buildings when zooming out - #782

Merged
BSoDium merged 1 commit into
mainfrom
ccr-61360b8f-mokej6
Dec 2, 2026
Merged

BSoDium merged 1 commit into
mainfrom
ccr-61360b8f-mokej6

Conversation

@BSoDium

@BSoDium BSoDium commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Reported after #780: zooming out with a site selected, the buildings around fade away and the selected site's do too for a moment, then come back.

Cause. The raised buildings' data (refreshSpotBuildings) was only computed while the zoom was below the top of the outline range (15.5), and it is refreshed on idle, on tile loads and on selection, not while the camera moves. Zooming out from above 15.5, the data was empty until one of those events came; meanwhile the map's own outlines switched off at 15.35 and eased out, so the selected site's outlines had nothing under them until the refresh. Whether it showed depended on timing (a fast machine is more likely to show it than the software-rendered browser I tested in, where a tile load happened to refresh it early).

Fix. The data is computed at every zoom from the floor (13) up; the layers' own minzoom/maxzoom still decide what is drawn. It is also refreshed on zoomend. Checked in the app: the data is now there at zoom 15.7 and 16.3 (805 and 666 buildings), ready before the camera comes down.

I could not reproduce the flicker itself in this environment, so the confirmation is the logs and the code path, not a frame capture of the fix: please confirm on your laptop.

tsc and the web tests pass (2685). No linked issue; not on the project board (GraphQL is blocked from the session), so it needs adding by hand.


Generated by Claude Code

…op of their zoom range

The data of the raised buildings was only computed below zoom 15.5 and refreshed on idle or tile load, so zooming out from above it left it empty while the map's own
outlines faded out: the selected site's buildings went for a moment and came back when the map settled. Computed at every zoom from 13 up (the layers' own range decides what is drawn)
and refreshed when a zoom ends.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ub8ohSy48X6pcmj5SVt26M
@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
catalyst-v2 Ready Ready Preview Dec 2, 2026 7:12am UTC
1 Skipped Deployment
Project Deployment Actions Updated
catalyst-v2-api Skipped Skipped Dec 2, 2026 7:12am UTC

@BSoDium
BSoDium marked this pull request as ready for review December 2, 2026 07:39
@BSoDium
BSoDium merged commit 8001ed3 into main Dec 2, 2026
5 checks passed
@BSoDium
BSoDium deleted the ccr-61360b8f-mokej6 branch December 2, 2026 07:39

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – catalyst-v2 — bcec9a37 Deployed Dec 2, 2026 by vercel[bot]
Preview – catalyst-v2-api — bcec9a37 Deployed Dec 2, 2026 by vercel[bot]
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.

2 participants