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

Initialize Viewer with fit to specified bounding box #229

Open
garrettdashnelson opened this issue Oct 17, 2024 · 0 comments
Open

Initialize Viewer with fit to specified bounding box #229

garrettdashnelson opened this issue Oct 17, 2024 · 0 comments

Comments

@garrettdashnelson
Copy link

Feature-request (and if this is already an implemented feature, I apologize for not being able to find it, either in Clover or OSD!).

I would like to be able to initialize a Viewer component with parameters that set it to fit the view to a specified bounding box within the initial image.

I know that I can pass defaultZoomLevel to options.openSeadragon to force a zoom-in around the centerpoint. But what I'd like to do is a bit more specific, fitting the view to a specified bounding box within the image, equivalent to what one could do in OpenLayers with View.fit().

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

No branches or pull requests

1 participant