-
-
Notifications
You must be signed in to change notification settings - Fork 860
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
[BUG] v6: New default constraints cause trapped zooms on different screen sizes #1699
Comments
Sorry, it seems it cannot be below 2 - not 3 |
I'm assuming this is todo with display size, and therefore #1682. |
Yes, good spot! I can confirm adding: Perhaps keeping camera constraints disabled by default is the way to go after all, since having zoom levels that don't work is going to lead to confusion. |
Yep, I've opened #1682 to revert this commit. I didn't release it would cause so many issues! |
What is the bug?
In my
MapOptions
I include:initialZoom: 1.5, minZoom: 1.5,
In v5.0.0 this worked as expected.
In v6.0.0:
Seems to work as expected on Android emulator.
On Chrome, it allows further zoom in but cannot zoom out until zoom level is greater than 3 (and then only allows zoom down to 3, not 1.5 requested).
On Windows 11 (x64) zoom is frozen - cannot zoom in or out - if
initialZoom
set below 3.I've not tested on macOS/iOS.
Setting
minZoom
to a value greater or equal to 3 works as expected (doesn't allow zoom less than whatever it's set to) on all platforms tested.It seems like
minZoom
is internally limited to no less than 3?I've tried changing
minNativeZoom
andminZoom
on theTileLayer
but this has no effect (given they both default to zero anyway this is unsurprising).How can we reproduce it?
Set
initialZoom
and/orminZoom
to a value less than 3 inMapOptions
and try and zoom on affected platforms.Do you have a potential solution?
No response
Platforms
Windows 11 (x64), Edge, Android Emulator
Severity
Obtrusive: Prevents normal functioning but causes no errors in the console
The text was updated successfully, but these errors were encountered: