Option to enabled/disable pan zoom
See original GitHub issueThis library has made my job easier. I would like to see option or function to enable/disable pan and or zoom.
Right now the only way to achieve is to dispose()
and recreate;
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Panzoom - How to disable the drag option? - Stack Overflow
Use the disablePan option: $section.find('.panzoom').panzoom({ disablePan: true, $zoomIn: $section.find(".zoom-in"), $zoomOut: $section.find(".zoom-out"), ...
Read more >Disable pan and zoom - Adobe Support Community - 11692553
Is there a way to disable the pan and zoom feature by default? When I add a photo it is automatically on and...
Read more >Disable pan and zoom in OpenLayers - GIS Stack Exchange
I'm using the latest version of OpenLayers in my map application, and I need disable all zoom functions and panning for users.
Read more >Panning and zooming in 2D | Maya 2020
Tip: You can also toggle between enabling and disabling 2D Pan/Zoom by clicking the hotkey \ or the button in the Panel toolbar....
Read more >How do I disable pan and zoom on a map? - Esri Community
Solved: How do I disable pan and zoom on a map? Here is my map definition: Yet it doesn't disable any of the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was wondering the same. It would be really nice to disable/enable these things manually.
I added some functions to make it possible in my code.
It might not be the optimal solution though.
HI guys, just added three methods
pause(), resume(), isPaused()
. Documentation is here. Should be available inv6.1.0