[OpenLayers-Users] Change mouseWheel behavior only in down event

Francesco D'Alesio francesco.dalesio at r3-gis.com
Fri May 4 09:23:43 EDT 2012


Hi Francesco,
you can listen to the map zoomend event, then you can get the current 
zoom level with map.getZoom() and de/activate the zoomWheel consequently.

Hope this helps


Francesco


Il 04/05/2012 14:39, francescoboccacci at libero.it ha scritto:
> Hi all,
> i have a  question about mouseWheel event.
> I would like to change the behavior of mouse wheel event. I would like to
> disable mousewheel "down" event if the map.zoom = 10 and active it if it is
> great than 10.
> How is possible to do that?
> I find just this example but it disable mouseWheel behavior in general:
>
> map.controls[1].disableZoomWheel()
>
> Thanks
>
> Francesco
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users


-- 



More information about the Users mailing list