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 to zoom beyond the base image resolution? #115

Open
parthdhoot opened this issue Mar 13, 2024 · 1 comment
Open

How to zoom beyond the base image resolution? #115

parthdhoot opened this issue Mar 13, 2024 · 1 comment

Comments

@parthdhoot
Copy link

I have a requirement where I am suppose to zoom an image upto 200% of its maximum resolution. The default behaviour doesn't allow beyond 100%. I couldn't find any configuration to change the same.
So, if, for eg. I have an SM modality whole slide image with 7 levels - I can zoom in to the last level, but not able to digitally zoom beyond that.
So, would like to know if there is any option to digitally zoom beyond the base image resolution if we want to?

Can give more details if required to understand the requirement better.

Apologies, if there is any mistake in the framing of the question.

@igoroctaviano
Copy link
Collaborator

While you can't zoom indefinitely in OpenLayers, you can set a high maxZoom level that allows for extensive zooming in. However, the actual zooming experience is limited by the underlying data source and how it serves tiles at those zoom levels. You can try implementing a vector layer on your side https://openlayers.org/en/latest/examples/vector-layer.html

Instead of relying on raster tiles, use vector layers (like GeoJSON or vector tiles). Vector data can be rendered at any scale without losing quality, which gives the illusion of indefinite zooming but that's a different implementation.

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

2 participants