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

How delete request tiles. #1327

Closed
Ronalses opened this issue Oct 23, 2017 · 2 comments
Closed

How delete request tiles. #1327

Ronalses opened this issue Oct 23, 2017 · 2 comments
Labels

Comments

@Ronalses
Copy link

is there any way to cancel all calls that are pending?
I have an application in angular and when I change of route, the calls still are pending.
I would like to stop calls that are still pending. when the application changes its route.
sorry for my English.

Thank you very much in advance.

@thatcher
Copy link
Member

thatcher commented Oct 25, 2017

I believe you are looking for viewer.imageLoader.clear()

For example:

var viewer = OpenSeadragon({
   // ....options
});
// Made up event handler to pretend your app has a callback when the route changes
yourApp.onRouteChange(function(){
    // THIS IS THE RELEVANT API CALL
    viewer.imageLoader.clear();
});

@Ronalses
Copy link
Author

Hello thank you very much.
I'll try to see how this works.

Thank you very much for your help.

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

No branches or pull requests

3 participants