Skip to content

Conversation

@mollymerp
Copy link
Contributor

@mollymerp mollymerp commented Mar 15, 2017

fix #4425

the previousState argument for the _tileLoaded wasn't being bound here so the err wasn't being caught, and thus tiles that error out were preventing map, style and source from returning true from #loaded()

Launch Checklist

  • briefly describe the changes in this PR
  • write tests for all new functionality
  • document any changes to public APIs
  • post benchmark scores
  • manually test the debug page

@mollymerp mollymerp changed the title make sure previousState is bound to _tileLoaded ensure erroring tiles dont block map from firing load events Mar 15, 2017
Copy link
Contributor

@anandthakker anandthakker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

@mollymerp mollymerp merged commit a7fc574 into master Mar 15, 2017
@mollymerp mollymerp deleted the fix-loaded branch March 15, 2017 18:49
andrewharvey pushed a commit to andrewharvey/mapbox-gl-js that referenced this pull request Mar 17, 2017
…4426)

* make sure previousState is bound to _tileLoaded

* add a test
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

Successfully merging this pull request may close these issues.

map.loaded() returns false if tiles error

2 participants