You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Clip parent-tile symbols in mixed-zoom tiles #10480
In our current logic, symbols are rendered without clipping for both tiles. We rely on the CrossTileSymbolIndex to prevent duplicates from being double-drawn (in fact, we draw duplicates, but we make the duplicate copies invisible). We rely on the global CollisionIndex to prevent collisions between the child and parent tile.
However, symbols from the parent tile that are in the quadrant covered by the child tile can still "show through", as long as they don't collide with anything in the same layer. Once the parent tile is removed, they'll disappear, and maybe be replaced by something in a later layer from the child tile. This means that the quadrant covered by the child ends up showing three sets of symbols over the course of loading: parent -> mixed -> child. That "mixed" phase isn't really wrong, but it's unnecessary and can lead to extra label cross-fading (aka collision/label instability).
We could fix this if at placement time we were aware of which quadrants of a tile were covered by children, and just avoided placing symbols in those areas.
Activity
kkaefer commentedon Nov 17, 2017
I think this is a great idea. We already have logic to calculate the covered children masks that we use for raster tiles:
mapbox-gl-native/src/mbgl/algorithm/update_tile_masks.hpp
Lines 48 to 125 in dcd7da1
stale commentedon Dec 4, 2018
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.
stale commentedon Jul 2, 2019
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.
stale commentedon Feb 1, 2020
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.