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

map.loaded() returns "false" when setFilter() is used on a layer with missing tiles within the viewport #7346

Closed
lobenichou opened this issue Sep 27, 2018 · 0 comments · Fixed by #7355

Comments

@lobenichou
Copy link

When using custom vector tiles, empty tiles will return a 404, which is expected behavior. However, if a we have missing tiles within the viewport and we use setFilter() on click on a layer using the missing tiles, map.loaded() will continuously return false.

mapbox-gl-js version: 0.49

browser: Chrome, FireFox, Safari

Steps to Trigger Behavior

  1. Create custom vector tiles
  2. Add a layer to filter and a layer to set the on click event on.
  3. Add an on click event to the layer
    4 . Add a setFiler() on click
  4. Set an interval logging map.loaded()

Link to Demonstration

Here is a jsFiddle: https://jsfiddle.net/f27j8rqs/

screen shot 2018-09-27 at 11 14 18 am

Expected Behavior

map.loaded() should return true.

Actual Behavior

map.loaded() returns false.

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