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
at the moment, according to my research, there is no way to integrate this functionality into leaflet react.
I think you would have to work with useMap
like this
const map = useMap() map.options.smoothWheelZoom = true
const map = useMap()
map.options.smoothWheelZoom = true
The text was updated successfully, but these errors were encountered:
Just copy the SmoothWheelZoom.js in your project and import this file directly where you initialize map. it works out of the box.
SmoothWheelZoom.js
import "../../../../shared/hooks/Leaflet.SmoothWheelZoom.js";
That's all it works.
Sorry, something went wrong.
No branches or pull requests
at the moment, according to my research, there is no way to integrate this functionality into leaflet react.
I think you would have to work with useMap
like this
const map = useMap()
map.options.smoothWheelZoom = true
The text was updated successfully, but these errors were encountered: