[OpenLayers-Users] Disable Zoom wheel
Bart van den Eijnden (OSGIS)
bartvde at osgis.nl
Mon Jul 6 13:34:28 EDT 2009
Hi,
when creating your map pass an array of controls with the right
settings, so:
var map = new OpenLayers.Map(mydiv, {controls: [ new
OpenLayers.Control.Navigation({zoomWheelEnabled: false}),
new OpenLayers.Control.PanZoom(),
new OpenLayers.Control.ArgParser(),
new OpenLayers.Control.Attribution()
]});
Best regards,
Bart
Admin TrouveTonGull.info wrote:
> Hello,
>
> i try
>
>
> var movemap = new OpenLayers.Control.Navigation({'zoomWheelEnabled':
> false});
> movemap.disableZoomWheel();
>
> controls = map.getControlsByClass('OpenLayers.Control.Navigation');
> for(var I = 0; i<controls.length; ++i)
> controls.disableZoomWheel();
>
>
> but don't work :(
>
> what is the correct way to disable zoom wheel?
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
>
--
Bart van den Eijnden
OSGIS, Open Source GIS
bartvde at osgis.nl
http://www.osgis.nl
More information about the Users
mailing list