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 }}
Repository navigation
Collision detection incorrect for symbol layers that share the same layout properties #6548
When we generate symbol buckets for a tile, we use the groupByLayout function to group together all style layers that share a common set of layout properties and a common source layer. Since the two layers share common layout data, they can also share a SymbolBucket, even though they may render differently due to different paint properties.
The shared SymbolBucket breaks the current assumptions of our CrossTileSymbolIndex, because for each layer, we store each symbol's crossTileID in the associated bucket's SymbolInstances. When two symbols from two different layers share the same SymbolInstance, they can overwrite each other's crossTileIDs.
One way this could manifest is:
Layer1 and Layer2 share the same bucket, and the layers are allowed to collide with each other.
Layer1 gets placed
Layer2 gets placed, but matches all the symbols for Layer1, so every SymbolInstance is marked collided
At render time, symbols in Layer1 pick up opacities from the collided Layer2, so that no symbols are shown from either layer.
I think the fix here is just to have SymbolInstance store crossTileIDs on a per-layer basis.
Activity
Only run placement for first layer per SymbolBucket.
fix #6548, never group symbol layers by layout
Only run placement for first layer per SymbolBucket.
Only run placement for first layer per SymbolBucket.
Only run placement for first layer per SymbolBucket.
ChrisLoer commentedon Apr 25, 2018
Fixed in #6558/#6556.