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, francescobocca...@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
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users


--

_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to