Configure ol.interaction.DragRotate with options

This commit is contained in:
Tom Payne
2013-04-22 14:44:53 +02:00
parent ef17d4f3b8
commit 003ac5536e
3 changed files with 13 additions and 5 deletions
+1 -2
View File
@@ -31,8 +31,7 @@ ol.interaction.defaults = function(opt_options, opt_interactions) {
var altShiftDragRotate = goog.isDef(options.altShiftDragRotate) ?
options.altShiftDragRotate : true;
if (altShiftDragRotate) {
interactions.push(new ol.interaction.DragRotate(
ol.interaction.condition.altShiftKeysOnly));
interactions.push(new ol.interaction.DragRotate());
}
var doubleClickZoom = goog.isDef(options.doubleClickZoom) ?