Rename ol.control.DragZoom to ol.control.ShiftDragZoom

This commit is contained in:
Tom Payne
2012-07-29 17:17:49 +02:00
parent 8179cf0b69
commit 2f32158374
2 changed files with 16 additions and 9 deletions

View File

@@ -8,10 +8,10 @@ goog.require('ol.MapProperty');
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.KeyboardZoom');
goog.require('ol.control.MouseWheelZoom');
goog.require('ol.control.ShiftDragZoom');
goog.require('ol.dom');
goog.require('ol.dom.Map');
goog.require('ol.webgl');
@@ -78,10 +78,10 @@ ol.createMap = function(target, opt_values, opt_rendererHints) {
var controls = new ol.Array();
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.KeyboardZoom());
controls.push(new ol.control.MouseWheelZoom());
controls.push(new ol.control.ShiftDragZoom());
values[ol.MapProperty.CONTROLS] = controls;
}