Repository navigation
Street map: no flicker of a selected site's buildings when zooming out - #782
Merged
Merged
Conversation
…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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 onidle, 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/maxzoomstill decide what is drawn. It is also refreshed onzoomend. 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.
tscand 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