Changing zoom direction with mouse wheel

In the ESRI Web ADF for the Microsoft .NET Framework the default behavior for the mouse scroll wheel is to zoom in to the map control as you move the scroll wheel forward.  Enter the following code snippet in the Default.aspx after all the Web ADF control declarations in your web application if you would like to change the behavior of the scroll wheel so that it zooms out as you move the mouse wheel forward (which is also how ArcGIS Explorer behaves).

  
<script language="javascript" type="text/javascript">

        mouseWheelAwayZoomIn = false;

 </script>

 

Here is an example of the default behavior:   http://serverx.esri.com/bendenaquadsp/

Here is an example of the changed behavior:   http://serverx.esri.com/bendenaquadspreversescroll/

 
Jeremy 

 

This entry was posted in Services and tagged , . Bookmark the permalink.

Leave a Reply

2 Comments

  1. Mapor says:

    Excellent, the wheel of mouse works! Can this harm the performance thinking about several users using it?

    Thanks Jeremy.

  2. Jeremy says:

    Hi Mapor,

    Performance should not be an issue with this.

    Thanks,
    Jeremy