UseZoomOnWheel: Boolean
The UseZoomOnWheel property determines whether a map will be zoomed with mouse wheel.
If the property is set to true, a map can be zoomed with mouse wheel; if the property is set to false, a map cannot be zoomed.
To execute this example, the page must contain the MapChart component named map (see Example of Creating the MapChart Component). Add a flag that will enable and disable map zooming with the mouse wheel on selecting and deselecting:
var zoomOnWheel = new PP.Ui.CheckBox({ Content: "Zoom using mouse wheel", ParentNode: document.body, CheckedChanged: function () { map.setUseZoomOnWheel(zoomOnWheel.getChecked()) } });
After executing the example the Zoom with Mouse Wheel checkbox is added on the page. Selecting or deselecting this checkbox enables and disables zooming map with mouse wheel.
See also: