[OpenLayers-Users] mousewheel jumps two zoom levels
Vidal, Antoni
antoni.vidal at icc.cat
Thu Jan 26 09:29:00 EST 2012
Hi list,
I've an OpenLayers.control.Navigation with following config options:
var navControl = new OpenLayers.Control.Navigation({
type: OpenLayers.Control.TYPE_TOGGLE,
zoomWheelEnabled: true,
mouseWheelOptions: {interval: 1}
});
But when user changes map zoom level using mousewheel, map zoomlevel jumps from 0 to 2 and then to 4, etc.
Is possible to change this behaviour and force change zoomlevel one by one ?
Thanks in advance.
Antoni Vidal
Unitat d'Aplicacions SIG-WEB
Institut Cartogràfic de Catalunya <http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392>
Parc de Montjuïc, E-08038 Barcelona
Tel. (+34) 93 567 15 00 (ext. 3228)
www.icc.cat <http://www.icc.cat/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120126/f0d4205d/attachment-0001.html
More information about the Users
mailing list