This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
Show parent tile XOR child tiles - #2482
Merged
Merged
Conversation
Since label rendering isn't clipped, having a parent tile, and only a handful of child tiles loaded may result in some labels being rendered twice (from the parent tile, and the up to three child tiles that necessitate the parent tile remaining in the list). This patch makes sure that in one location, it only ever renders one set of labels, by favoring the parent tile until all required child tiles have been loaded.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
For labels, there are currently situations where we show a combinations of parent and child tiles when zooming in. Since labels aren't clipped by the stencil buffers, this results in duplicate labels being shown until all child tiles have loaded.
I think the easiest way to solve this issue is to never show a combination of parent and child tiles. This might mean that we have to wait some time until we show a new tile, but we only need to do this when we already have the parent tile, so there's at least something that we can show.
Likely, this will also allow us to significantly reduce the "stencil mask overflow" messages, since we don't need to compute distinct mask IDs for partially covered tiles.