From f3978d200f90a8452ecdbbe641ad321d6362ec31 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Fri, 18 Jan 2013 14:04:33 +0100 Subject: [PATCH] Use Alt+Shift to rotate by default, refs #21 --- examples/side-by-side.html | 2 +- src/ol/map.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/side-by-side.html b/examples/side-by-side.html index ffc817397b..d113c5ea8d 100644 --- a/examples/side-by-side.html +++ b/examples/side-by-side.html @@ -45,7 +45,7 @@ Rotate: - Alt+drag, r to reset + Alt+Shift+drag, r to reset Brightness/contrast: diff --git a/src/ol/map.js b/src/ol/map.js index a0400327e3..85635f5615 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -893,8 +893,8 @@ ol.Map.createInteractions_ = function(mapOptions) { var rotate = goog.isDef(mapOptions.rotate) ? mapOptions.rotate : true; if (rotate) { - interactions.push( - new ol.interaction.DragRotate(ol.interaction.condition.altKeyOnly)); + interactions.push(new ol.interaction.DragRotate( + ol.interaction.condition.altShiftKeysOnly)); } var doubleClickZoom = goog.isDef(mapOptions.doubleClickZoom) ?