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

MBtiles vector tile render loop when zooming in #3866

Closed
stackTom opened this issue Dec 28, 2016 · 2 comments
Closed

MBtiles vector tile render loop when zooming in #3866

stackTom opened this issue Dec 28, 2016 · 2 comments

Comments

@stackTom
Copy link

mapbox-gl-js version:

Steps to Trigger Behavior

  1. load mbtiles vector tile source
  2. check map loaded

Expected Behavior

map.loaded() eventually returns true, render event should stop if no changes to map are made

Actual Behavior

map.loaded() always returns false, render event occurs infinitely

I load a vector tile source from an mbtiles server. Initially, the render event is only emitted once, and map.loaded() eventually returns true. If I zoom in sufficiently such that a large number of points from the mbtiles is visible, the render method begins to be called an infinite number of times, and map.loaded() never returns true.

I found this: #3398
Could it be the same issue, or different as in my case, it is a vector tile source?

@jfirebaugh
Copy link
Contributor

It's difficult to say what the issue is offhand. Could you provide a self-contained code example that demonstrates the problem?

@stackTom
Copy link
Author

My bad. I was trying to reproduce the issue in a jsfiddle, and it turns out it is due to a base raster layer that I am using in my project. Changing the base layer to a vector mapbox style eliminates the issue, so this is in fact a duplicate of #3398

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

2 participants