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

[map-basic] Mouse zooming does not work properly after migration to vuelayers 0.12.0-rc.21 #32

Closed
lubojr opened this issue Feb 25, 2021 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@lubojr
Copy link
Member

lubojr commented Feb 25, 2021

With migration to Openlayers 6 + Vuelayers 0.12.x allowing non-integer zoom levels, our zooming stopped working properly (zooming happens in very low increments). I have so far been able to investigate following: Concerned component is https://openlayers.org/en/latest/apidoc/module-ol_interaction_MouseWheelZoom-MouseWheelZoom.html

When passing non-default useAnchor parameter as false and constraining zoom levels via constrainResolution - either on view or on MouseWheelZoom control (which yield nicer looking and crisp vector tiles anyway), it works fine and is merged now to main. The problem is that anchor of zooming is set to center of page, which is a relict of past and does not bring a nice user experience.

The improvement would be to investigate and solve why the zooming does not work properly without useAnchor=false

@lubojr lubojr added the enhancement New feature or request label Feb 25, 2021
@silvester-pari silvester-pari changed the title [map] Mouse zooming does not work properly after migration to vuelayers 0.12.x [map-basic] Mouse zooming does not work properly after migration to vuelayers 0.12.x Feb 25, 2021
@silvester-pari
Copy link
Collaborator

Most likely connected to issue ghettovoice/vuelayers#413.

Reverted the vuelayers package version to 0.12.0-rc.20 for now and removed the MouseWheelZoom hack, let's hope for a fix soon on vuelayers' side :-)

@silvester-pari silvester-pari changed the title [map-basic] Mouse zooming does not work properly after migration to vuelayers 0.12.x [map-basic] Mouse zooming does not work properly after migration to vuelayers 0.12.0-rc.21 Mar 22, 2021
@silvester-pari silvester-pari added bug Something isn't working and removed enhancement New feature or request labels Mar 23, 2021
@silvester-pari silvester-pari added this to the 2.x.x milestone Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants