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
Enable consistent sorting across tile boundaries #7111
Enable consistent sorting across tile boundaries for symbol layers
Enable consistent sorting across tile boundaries for circle layers
The fact that we can't maintain sort order for symbol layers that cross tile boundaries is a known regression and byproduct of viewport collision detection. You can see some of the design discussion of the tradeoffs involve at #5150 (comment)
For circle layers, this appears to be an older issue.
@mourner or @ansis, do you have ideas on how we could best approach this? Also are there other layer types besides circles and symbols that are affected? The two approaches I have in mind are:
Make a (more expensive) draw mode for circle/symbol layers that tries to calculate padding for the layer so that symbols/circles likely to overlap get included in tiles on both sides of the boundary (would we do this at the GeoJSONSource level?). Turn on tile clipping and then draw the same symbol in both tiles.
Some sort of "mega tile" merging to avoid tile boundaries. Win because of fewer draw calls, loss because of having to re-upload everything in the viewport whenever one tile changes.
Neither seem like an obvious great solution to me...
Activity
ChrisLoer commentedon Aug 13, 2018
@mourner or @ansis, do you have ideas on how we could best approach this? Also are there other layer types besides circles and symbols that are affected? The two approaches I have in mind are:
Neither seem like an obvious great solution to me...
add `symbol-sort-key` style property
add `symbol-sort-key` style property (#7678)