Repository navigation
0.1.0-beta.21: the lens hides its townships once the sections have loaded - #38
Merged
Merged
Conversation
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.
Stops
shapesLensflashing its newly covered townships clear on each recentre, and bumps to0.1.0-beta.21.Cause
A frame-by-frame browser repro found the problem. The townships'
lensHiddenfeature state applied at the next render, but the sections drew only after MapLibre's worker and tile reload. For 2 frames per recentre:Change
shapesLenskeeps the wanted hidden set as pending and applies it whole once the sections' source has loaded:sourcedatatile oridleevent withisSourceLoaded, nevermetadata/content;errorfor that source;idle;GlMapLikegainsisSourceLoaded(id), which MapLibre'sMapalready has. This is a type change only for hosts that wrap the GL map.Known limit: when the view spans tiles that finish in different frames, a township can show through its new sections for one frame, as a tint and never clear.
Spec:
docs/superpowers/specs/2026-11-17-lens-hide-on-load-design.md. Plan:docs/superpowers/plans/2026-11-17-lens-hide-on-load.md.Tests
tests/client/plugins/shapes-lens.test.ts:metadata/contentignored;errorapplies;idleapplies;recentring never shows a township clear, or under its sections, for a framereads every rendered frame across 4 recentres and a release. It fails onmainand passes here. The full browser project passed 9 of 9 runs undertaskset -c 0,1.npm test1317 passed; check, lint and the bundle check are clean.