[OpenLayers-Users] DragPan

elvin ibbotson elvin.ibbotson at googlemail.com
Thu Feb 4 13:28:52 EST 2010


I want to allow dragging to pan an OSM map but not to allow double-click
zooming (instead using external controls for zoom). I instantiated the map
with...
map=new OpenLayers.Map($("map"),{units:'degrees', controls:[]});
then added the DragPan control with...
map.addControl(new OpenLayers.Control.DragPan());
but dragging has no effect and I am unable to pan the map unless I use the
Navigation control.
Am I doing something wrong?
-- 
View this message in context: http://n2.nabble.com/DragPan-tp4515293p4515293.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list