Skip to content

Fix symbol rendering under opaque fill layers - #7612

Merged
ryanhamley merged 2 commits into
masterfrom
symbol-depth-testing
Nov 28, 2018
Merged

ryanhamley merged 2 commits into
masterfrom
symbol-depth-testing

Conversation

@ryanhamley

@ryanhamley ryanhamley commented Nov 21, 2018 •

Copy link
Copy Markdown
Contributor

Launch Checklist

Without fix
screen shot 2018-11-21 at 2 49 19 pm

With fix
screen shot 2018-11-21 at 2 47 42 pm

@ryanhamley

Copy link
Copy Markdown
Contributor Author

It didn't seem to matter which depth calculation I chose in painter.depthModeForSublayer so I arbitrarily chose farDepth and renamed it depth. I can change this if I'm overlooking something.

Also just want to ensure that this is the behavior we're looking for in this situation, where the underlying symbol layer is cut off and obscured by the opaque fill layer. It seems like the expected behavior to me.
screen shot 2018-11-21 at 2 47 28 pm

@ryanhamley
ryanhamley requested a review from ansis November 27, 2018 01:25
@ansis

ansis commented Nov 27, 2018

Copy link
Copy Markdown
Contributor

This looks good. Can you confirm that symbols are not clipped when the map is pitched?

@ryanhamley
ryanhamley merged commit 1d16c6c into master Nov 28, 2018
@ryanhamley
ryanhamley deleted the symbol-depth-testing branch November 28, 2018 18:32
pirxpilot pushed a commit to pirxpilot/mapbox-gl-js that referenced this pull request Jun 14, 2019
pirxpilot pushed a commit to pirxpilot/mapbox-gl-js that referenced this pull request Jun 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix rendering of symbol layers under solid fill layers

2 participants