From 422010271b91e270fc9c263a04157a8316970be8 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Mon, 30 Jul 2012 00:30:55 +0200 Subject: [PATCH] Use ultra-sexy RotateAndZoom control by default --- src/ol/base/createmap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/base/createmap.js b/src/ol/base/createmap.js index 32142e2362..217b2278bd 100644 --- a/src/ol/base/createmap.js +++ b/src/ol/base/createmap.js @@ -11,7 +11,7 @@ goog.require('ol.control.DragPan'); goog.require('ol.control.KeyboardPan'); goog.require('ol.control.KeyboardZoom'); goog.require('ol.control.MouseWheelZoom'); -goog.require('ol.control.ShiftDragRotate'); +goog.require('ol.control.ShiftDragRotateAndZoom'); goog.require('ol.control.ShiftDragZoom'); goog.require('ol.dom'); goog.require('ol.dom.Map'); @@ -82,7 +82,7 @@ ol.createMap = function(target, opt_values, opt_rendererHints) { controls.push(new ol.control.KeyboardPan()); controls.push(new ol.control.KeyboardZoom()); controls.push(new ol.control.MouseWheelZoom()); - controls.push(new ol.control.ShiftDragRotate()); + controls.push(new ol.control.ShiftDragRotateAndZoom()); controls.push(new ol.control.ShiftDragZoom()); values[ol.MapProperty.CONTROLS] = controls; }