-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Overlapping background-patterns break rendering #1633
Comments
Wow, that looks bad. cc @ansis |
I still suspect it's a mistake in my Sprite. It's my first shot at it. |
Similar Problem in Mapbox Studio: Using multiple pattern causes Problems in Chrome on Mac. When you zoom into the map close enough so parks appear, the park pattern is replacing the water pattern. Once the swap has happened, the water won‘t return to mobile without a browser refresh. Test style created in Mapbox studio:mapbox://styles/g12n/cih6bh7vl006lbpkrhtmbxjk3 Preview of the published style on Mapbox: |
Thanks for the testcase @g12n The problem was that the patterns did not fit in the sprite atlas. #141 is the underlying issue so I'll close this one. A temporary workaround would be to use smaller textures. b016729 improves how the failure is handled by not drawing the affected layers and logging a warning to the console. |
Since this is Happening inside MapBox Studio as well, there should be a warning in the UI for Designers as well. Are you aware of an Issue in that Project? I created a Test-Style with quite tiny patterns. It works, but the results are more than just unsatisfactory. :| |
The rendering of multiple layers with background patterns break the rendering of these layers:
You find the source of this sample here: https://github.com/g12n/cardboard-map-gl
The sample is hosted in github pages and can be accessed here:
http://g12n.github.io/cardboard-map-gl/
I added a debug version without patterns in the gh-pages branch:
http://g12n.github.io/cardboard-map-gl/debug.html
The text was updated successfully, but these errors were encountered: