We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'd love to implement the zoomDelta and zoomSnap options in the configureLeaflet.
zoomDelta
zoomSnap
configureLeaflet.
In leaflet these are declared at init, with L.map
L.map
I need help. How can I have those two options?
Thank You.
No response
5.7.2
plan
The text was updated successfully, but these errors were encountered:
Update: I found that const map = planPlugin.getLeaflet(); map.options.zoomDelta=(0.25);
const map = planPlugin.getLeaflet(); map.options.zoomDelta=(0.25);
works with the buttons +/- I added on the map. But not with the keyboard +/- With keyboard the zoomDelta remains = 1
I noticed that PgUp/PgDown zooms In or zooms out the pano even if the map is maximized.
https://www.tadini.it/temp/panorama_plan.html
Hope it helps.
Sorry, something went wrong.
Unfortunatley Leaflet has no public API to update these options on the fly. I cannot make it configurable.
You can still change them in configureLeaflet as you did, you just have to additionally call this to make the keyboard behave correctly.
configureLeaflet
map.keyboard._setZoomDelta(map.options.zoomDelta);
Because Leaflet does not listen to PgUp/PgDown, only +/-
No branches or pull requests
Describe your problem
I'd love to implement the
zoomDelta
andzoomSnap
options in theconfigureLeaflet.
In leaflet these are declared at init, with
L.map
I need help. How can I have those two options?
Thank You.
Online demo URL
No response
Photo Sphere Viewer version
5.7.2
Plugins loaded
plan
Additional context
No response
The text was updated successfully, but these errors were encountered: