MapChart.UseZoomOnWheel

Syntax

UseZoomOnWheel: Boolean

Description

The UseZoomOnWheel property specifies if map will be zoomed with mouse wheel.

Comments

If the property is set to True the map can be zoomed with mouse wheel, if the property is False the map is not zoomed.

Example

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:

MapChart