-
Notifications
You must be signed in to change notification settings - Fork 271
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
Add callback for when all loading starts and ends #389
Comments
Hi Garret, thanks for this great library! Could you give a brief example on how this would be accomplished via onLoadModel? How do I know the total amount of models that are going to be loaded so I can compare it with the current count? Sorry in case this is actually obvious. I just hit my quota rate limit on the google tiles API but wanted to give it a go tomorrow. |
You can check the amount of models currently in the queue to be parsed or downloaded using What's your use case exactly? If you have a compelling one and would like to open a PR to make this more convenient I can point you in the right direction. |
Thank you, that works! :) I could certainly try, but I come from iOS development and am not too familiar with typescript. |
The project is in Javascript if that changes anything. Either way up to you - also nice to have help. Happy to give feedback if you'd like to try. |
Related to #378
Such as
tiles.onLoadStart
andtiles.onLoadComplete
.This can already be implicitly done by checking the download and parse queue on every frame or in the
onLoadModel
callback (only can detect on end).The text was updated successfully, but these errors were encountered: