-
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
Line disappears when zooming closer than 18th zoom level #5171
Comments
Yeah, that looks like some kind of bug. Meanwhile, as a workaround, you can set |
Hey there ! I wanted to add some informations about this bug. When drawing a LineString, no matter how many points there are, if the last two are duplicated, the line before those point will disappear when reaching the 18th zoom level. Though I noticed some things :
I made a JSFiddle as an example, there is two lines, one with three points, where the last two are duplicated, and another line with three point, where the first two are duplicated. Thank you in advance for your answer, keep up the good work ! |
Is there any update on this issue? Running into this as well. Can confirm @CombesA 's bug is occurring for me as well. (Last two points are duplicated = only a piece of the line gets drawn after zoom level 18) |
I am setting |
I'm experiencing the same issue and I couldn't fix it by setting maxzoom for the source to 24, also removing duplicate points didn't help. In our case the issue was fixed by reducing the amount of decimals of the coordinates. |
We're seeing this as well. Linestrings become very distorted at high zoom levels. EDIT: 64 bit rendering solved most of the issues. Still minor clipping. |
Hi, Is there any update on this issue? I would like to be able to zoom in further and still see all polygon lines. Thanks. Edit: I came up with a work around for this. Instead of drawing a single line, draw a polygon where the last segment of the polygon lays exactly on top of the first segment. The last segment will not display due to the Mapbox GL Js bug. However, the first segment will still display and the polygon will look complete to the user. |
mapbox-gl-js version: 0.39.1
Steps to Trigger Behavior
accessToken
variable to your tokenExpected Behavior
Line should be visible
Actual Behavior
Line disappears
P.S. Looks like duplicated points with a different floating point precision is the root of the issue
The text was updated successfully, but these errors were encountered: