Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix symbol rendering under opaque fill layers #7612

Merged
merged 2 commits into from
Nov 28, 2018
Merged

Conversation

ryanhamley
Copy link
Contributor

@ryanhamley ryanhamley commented Nov 21, 2018

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
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
Copy link
Contributor

ansis commented Nov 27, 2018

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