How to reset image to it's default size in openseadragon

889 views Asked by At

I am implementing openseadragon plugin in angular4 on a popup slider, on close of popup (or while going to next image) if current image is zoomed I have to resize current image to it's default size (similar to go home button).

Any suggestions will be helpful.

1

There are 1 answers

3
iangilman On BEST ANSWER

Assuming your OpenSeadragon Viewer is called viewer, you'd do viewer.viewport.goHome() to go back to the default size.