-
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
Some GeoJSON geometries break in v0.46+ #7436
Comments
Bisected to 4fd646c, digging into geojson-vt now. |
I tried to charge order and direction of points in polygon. It stopped breaking when I set polygon from top-right point. But it doesn't help in all cases. |
It's likely caused by mapbox/geojson-vt@7226705, — I'll look closer why that happens and submit a fix tomorrow. |
@mourner is it possible that this change might be causing a new issue - namely, lines of polygons are faintly visible in polygons themselves? See my test case: https://bl.ocks.org/samfader/d1c9ab411d04bc82093c25cc80c55103 Here is the same data rendered as type Let me know if a new ticket is in order here. |
@samfader maybe it was "working" before accidentally? The behavior looks like something I'd expect — to guarantee gapless rendering, you'd use a buffer in the tile data. Also, let's confirm that it's related to the geojson-vt issue by checking in both v0.50 and v0.44. |
@mourner apologies, I'm not sure I completely understand what you mean. Do you mind expanding on how this is expected behavior? That being said, it looks like you're right that it's not related to the Still seeing the lines. So I think I just need to get a better understanding of why this is expected given the data I have. Let me know if there is a better channel for this! |
@samfader if you set As far as I understand (@ansis correct me if I'm wrong), if it's drawn on the tile boundary (there's no buffer), only half of it is clipped, and another one produces those subtle lines. This is the consequence of having |
Got it, thanks so much @mourner! |
I think |
@ansis see screenshot above, but also my apologies since I modified my example and forgot to change it back. You should be able to see the lines in this test case: https://bl.ocks.org/samfader/d1c9ab411d04bc82093c25cc80c55103 |
mapbox-gl-js version: v0.46+
browser: any
Link to Demonstration
Expected Behavior
Shapes look the same on all zoom levels.
Actual Behavior
Important vertices are dropped on some zoom levels.
Reported in comments to #7023.
The text was updated successfully, but these errors were encountered: