EaxMapView.UseZoomOnWheel

Syntax

UseZoomOnWheel: Boolean

Description

The UseZoomOnWheel property indicates if mouse wheel is used to zoom express report map.

Comments

Use JSON or the setUseZoomOnWheel method to set the property value, and the getUseZoomOnWheel method to get the property value.

This property contains True if mouse wheel is used to zoom the map, and False if otherwise. By default the property value is True.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component) and have a loaded map in the working area. Disable using mouse wheel to zoom express report map, and process the MetadataChanged event:

// Get express report map view
var eaxMapView = expressBox.getDataView().getMapView();
eaxMapView.MetadataChanged.add(
    function(sender, args) {
        var changedSettings = args.ChangedSettings;
        if(changedSettings != null) {
            console.log("Changed properties: ");
            for(var n in changedSettings) {
                // Get property name and value
                console.log(changedSettings[n].Name + ": " + changedSettings[n].Value);
            }
        }
    }
);
eaxMapView.setUseZoomOnWheel(False);

After executing the example using mouse wheel to zoom a map is disabled, and the browser console displays name and value of the modified map setting after the MetadataChanged event occurs:

Changed properties:
mapmaster.mainpanel.usezoomonwheel: False

See also:

EaxMapView