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() seems broken for raster layers #3872

Closed
averas opened this issue Dec 29, 2016 · 1 comment
Closed

map.loaded() seems broken for raster layers #3872

averas opened this issue Dec 29, 2016 · 1 comment

Comments

@averas
Copy link
Contributor

averas commented Dec 29, 2016

mapbox-gl-js version: v0.29.0

Steps to Trigger Behavior

  1. Load Mapbox satellite
  2. Interact (zoom/pan)
  3. Check the status of map.loaded()

Go to http://codepen.io/anon/pen/mONqWz and wait for the map to be fully loaded. Check the status of map.loaded() by clicking on the "loaded" button and review the console output. Zoom in/out and pan the map around some and check again. After a while map.loaded() returns false and never recovers. You can also try the fly operation by clicking the fly button.

This messes up client code that depends on this state, such as Mapbox GL Draw which can't be added once the map starts returning false on map.loaded()

Expected Behavior

That map.loaded() returns true when it really is.

Actual Behavior

Returns false after some interaction.

@averas
Copy link
Contributor Author

averas commented Dec 29, 2016

I confirmed this being related to #3398 and resolved in master via #3399.

@averas averas closed this as completed Dec 29, 2016
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

1 participant