-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Geometry displays wrong on some zooms #9085
Comments
/cc @mourner |
This is pretty evident on a map I am working on. It is one of the things blocking us releasing this map we are excited about. Is there something I (or SEMCOGs customer care rep) can do to help investigate? |
It happens when there's more than 2 sets of polygon. |
@cs09g Yes, I did notice that when there is only one hole in the polygon the problem goes away. Our polygons come with many holes. Is there some way we can use your observation? Or, was it to help track down how to fix the bug? |
This appears to be a bug in Earcut — investigating over at mapbox/earcut#131 |
We think we are seeing related issues using the latest version of Earcut. Would you be able to post a cdn link to the latest mapbox gl build so that we can make an example? |
Sorry I didn't see that in the changelog. We will continue our experimentation with that new version. |
Would this problem also be evident in mapbox studio? I'm having a similiar type issue. I'm making a reproducible now. Should I jump into this thread here? |
mapbox-gl-js version:
1.4.1 and 1.6.0 (did not test older)
browser:
Chrome or Firefox (tested on FF developers edition 71.0b12)
Steps to Trigger Behavior
at some zooms it looks like:

at others zooms it looks like:

Expected Behavior
That the shape will not change with zoom. And will match what that geojson looks like on http://geojsonlint.com/ (edit: or if the geojson is invalid for some reason then gives an error with why.)
Actual Behavior
Geometry pops in and out.
The text was updated successfully, but these errors were encountered: