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

GeoJSON LineString (a closed loop) display broken at zoom levels above 18 #4202

Closed
khatribharat opened this issue Feb 3, 2017 · 2 comments
Closed
Labels

Comments

@khatribharat
Copy link

Bug Demo : jsbin link
mapbox-gl-js version: : 0.32.1

Steps to Trigger Behavior

If you zoom out, the LineString displays properly, zooming in to levels above 18 breaks LineString display. This only occurs with LineStrings which are closed loops.

Expected Behavior

The LineString should display at all zoom levels

Actual Behavior

The LineString is broken at all zoom levels above 18

@ryanbaumann
Copy link
Contributor

ryanbaumann commented Feb 6, 2017

@khatribharat Geojson sources default to cut tiles at a maxzoom of 18 with geojson-vt. Increasing this value to 21 can address your problem.

https://jsbin.com/geyubemapi/1/edit?html,console,output

map.addSource("data", {
	"type": "geojson",
        "maxzoom" : 21,
	"data": {

That being said, this does look like a bug. The self-intersecting linestring should not appear hidden when over zooming past the max tile size of the source.

@lbud
Copy link
Contributor

lbud commented May 2, 2017

I believe this was fixed between v0.33.1 and v0.34.0 (likely #4413) — confirmed by switching Mapbox GL JS version in the fiddle provided above. Please open a new issue if you see this again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants