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.
We would only have to clip within the tile at draw time. For example, if a parent tile has only one loaded child, then the parent tile needs to be clipped to avoid double-drawing the child.
The clipping could be done with 2 stencil bits per source, with no limit on the number of zoom levels. It would need to be drawn in multiple passes just like the current clip mask. You calculate the values by iterate of tiles in increasing z level. For each tile there will be 0 to 3 parent tiles that share edges with this tile (a bit of mod math). Pick a value that is used by none of these tiles.
This means you could clip for 8bits/2bits = 4 different sources. Sources that aren't tiled, like geojson, wouldn't have to be clipped at all. Rasters could be clipped by providing different geometries at draw-time. Stencil clipping would only be used for tiled vector sources, so 4 is more than enough. If text is parsed and placed only after parsing non-text layers then each source would used 2 * 2bits #163
Mostly, the issue I'm seeing is that in overlapping areas, we'll have antialiased edges stacked, which means that the fringes will appear darker because multiple lines are in that location. Same issue with non-opaque objects.
Activity
kkaefer commentedon May 22, 2014
What are we doing with things that exceed the current clip area, like line caps?
ansis commentedon May 22, 2014
Draw them over the edge of the tile. Since we're drawing layer-by-layer this should be fine, right?
kkaefer commentedon May 22, 2014
Mostly, the issue I'm seeing is that in overlapping areas, we'll have antialiased edges stacked, which means that the fringes will appear darker because multiple lines are in that location. Same issue with non-opaque objects.
compute unique clip ids per tile, taking covering children into account
stale commentedon Nov 25, 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.