Activate keyboard pan control by default

This commit is contained in:
Tom Payne
2012-07-22 13:32:49 +02:00
parent ce0866dac4
commit 0edac78bd0

View File

@@ -9,6 +9,7 @@ goog.require('ol.Projection');
goog.require('ol.control.DblClickZoom');
goog.require('ol.control.DragPan');
goog.require('ol.control.DragZoom');
goog.require('ol.control.KeyboardPan');
goog.require('ol.control.MouseWheelZoom');
goog.require('ol.dom');
goog.require('ol.dom.Map');
@@ -77,6 +78,7 @@ ol.createMap = function(target, opt_values, opt_rendererHints) {
controls.push(new ol.control.DblClickZoom());
controls.push(new ol.control.DragPan());
controls.push(new ol.control.DragZoom());
controls.push(new ol.control.KeyboardPan());
controls.push(new ol.control.MouseWheelZoom());
values[ol.MapProperty.CONTROLS] = controls;
}