[OpenLayers-Users] How to disable <ctrl> drag

Jan Hartmann j.l.h.hartmann at uva.nl
Tue Feb 21 10:54:02 EST 2012


Hi all,

I have written a small application to input points with <ctrl><click> 
from an OpenLayers map using 
"map.events.register("click",map,function(e) { ...}". Works fine, but 
when the user moves the mouse when clicking, the default behavior takes 
over: the map is panned and no input takes place. How can I disable 
panning when the <ctrl> key is  down?

Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120221/804b1099/attachment-0001.html


More information about the Users mailing list