Hello
Is there any way to disable the "+" and "-" keys for the zoom slider widget? My user, wants to be zoomed, just through the mouse.
I made a debug and found that by zooming in on both the mouse and the keyboard, the function that is executed is "_zoomHandler" from the widget.js, but this function basically controls the maximum zoom levels, so that you can disable the buttons Widget.
Any help will be welcome.
Thank you!
Gilberto.
Solved! Go to Solution.
Gilberto,
In the MapManager.js add map.disableKeyboardNavigation(); to the _show2DWebMap function right after map.enableSnapping(options);
Gilberto,
In the MapManager.js add map.disableKeyboardNavigation(); to the _show2DWebMap function right after map.enableSnapping(options);
Perfect Robert!
Thanks again for your help.
Hug,
Gilberto.
Is there also a way to disable mouse scroll, so the user cannot zoom in/out?