Skip to content

Enable consistent sorting across tile boundaries #7111

Closed

Description

@lilykaiser

This ticket is to track requests for/work on:

  • 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.

Activity

  1. ChrisLoer commented on Aug 13, 2018

    @ChrisLoer
    Contributor

    @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...

  2. added a commit that references this issue on Dec 6, 2018
    a0ecd68
  3. added a commit that references this issue on Dec 12, 2018
    64ebdda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions