You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a series of images that I want to let the user position and zoom on and preserve the position and zoom level across images. I've figured out how to capture the zoom level and restore it, but I can't get the positioning to work. Any ideas?
The text was updated successfully, but these errors were encountered:
I stumbled on this by accident, but it may solve what you're trying to do.
Adding preserveViewport: true allowed me to 'toggle' between two images. In this case I used the previous and next button to load them.
See it's use here: http://deepzoomchattanooga.com/1865bend.php
You should also be able to do var box = viewer.viewport.getBounds() to get the current location and viewer.viewport.fitBounds(box) later to return to that location.
I have a series of images that I want to let the user position and zoom on and preserve the position and zoom level across images. I've figured out how to capture the zoom level and restore it, but I can't get the positioning to work. Any ideas?
The text was updated successfully, but these errors were encountered: