-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Tile load event #5628
Tile load event #5628
Conversation
@ggetz can you test and review this? |
tile.contentReadyPromise.then(function() { | ||
removeFunction(); | ||
tileset.tileLoad.raiseEvent(tile); | ||
}).otherwise(removeFunction); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it looks like this can fail, would it be worth passing an error to the event?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We would probably add a tileFailed
event instead, a little more detail here: #5158
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, makes sense!
Other than that one comment, looks good. |
I want to keep this open for just a little longer, currently getting feedback on the forum. |
There hasn't been too much activity on the forum post so I think this should go in before the release and if needed tweaked later. @pjcozzi can you merge? |
Fixes #5627