[OpenLayers-Users] Disable Zoom wheel

Alexandre Ardhuin alexandre.ardhuin at deveryware.com
Fri Jan 16 11:32:48 EST 2009


Hi you can use :

navigationControl.disableZoomWheel();
navigationControl.enableZoomWheel();

Alexandre.

2009/1/16 darrepac <pascal.darre at laposte.net>

>
> Hi,
>
> I browse the user list to find how to disable the mouse wheel in the map.
> I think I find the way to do it but it doesn't work, here is my code:
>
>      var movemap = new OpenLayers.Control.Navigation({'zoomWheelEnabled':
> false});
>
>      map.addControl(movemap);
>      movemap.activate();
>
> thanks for the help
> --
> View this message in context:
> http://n2.nabble.com/Disable-Zoom-wheel-tp2169123p2169123.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090116/08552d0e/attachment.html


More information about the Users mailing list