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

Missing "buffer-size" on some layers cause web-gl rendering issues #6

Open
nyurik opened this issue Mar 28, 2017 · 2 comments
Open

Comments

@nyurik
Copy link
Member

nyurik commented Mar 28, 2017

(adding buffer-size="4" by hand into XML fixed the issue, but this should be done in yaml and with proper buffer size)

Seems that mapnik-generated tiles have bigger geometries than the allowed buffer size. I suspect this is the reason for lots of vertical & horizontal lines when drawing non-closed lines:
image

Shows "Geometry exceeds allowed extent, reduce your vector tile buffer size" warning in the browser console.

Similar issue with some good discussion

@nyurik
Copy link
Member Author

nyurik commented Mar 28, 2017

Exactly the same problem reported in mapbox/mapbox-gl-js#2854

@nyurik nyurik changed the title Geometry exceeds allowed extent, reduce your vector tile buffer size Missing "buffer-size" on some layers cause web-gl rendering issues Mar 28, 2017
@nyurik
Copy link
Member Author

nyurik commented Mar 28, 2017

Ok, figured it out - some layers simply do not have "buffer-size" parameter, thus causing maximum value to be supplied. This in turn causes the data to exceed (probably off by one) the value that's allowed in WebGL. Adding buffer-size="4" directly to the boundary XML fixed the problem. @pnorman not sure what the proper value should be for each layer.

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

No branches or pull requests

1 participant