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

Default Value and minZoom. #25

Open
Caleb-Hollingsworth opened this issue Jul 27, 2021 · 1 comment
Open

Default Value and minZoom. #25

Caleb-Hollingsworth opened this issue Jul 27, 2021 · 1 comment

Comments

@Caleb-Hollingsworth
Copy link

Is there any way to set a default value? Also, when attempting to set minZoom to a value lower than 1 (minZoom={1}), the system becomes inoperable. Is there a way to set minZoom to a lower value than 1, as I'd like to be able to zoom out if the image is particularly wide.

Love this package btw, thanks for your work!

@sylvaindubus
Copy link
Owner

Hi. Unfortunately you cannot set a minZoom to a value lower than 1, it would make a css scale value lower than 1, which mean you will have a lot of blank space around your image. Anyway, you are free to set a pull request if you manage to find a good way to implement it!

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