diff --git a/src/ol/interaction/dragrotateandzoominteraction.js b/src/ol/interaction/dragrotateandzoominteraction.js index 99b02e5b9d..cccf420b3a 100644 --- a/src/ol/interaction/dragrotateandzoominteraction.js +++ b/src/ol/interaction/dragrotateandzoominteraction.js @@ -96,6 +96,7 @@ ol.interaction.DragRotateAndZoom.prototype.handleDrag = ol.interaction.DragRotateAndZoom.prototype.handleDragEnd = function(mapBrowserEvent) { var map = mapBrowserEvent.map; + // FIXME works for View2D only var view = map.getView().getView2D(); var direction = this.lastScaleDelta_ - 1; map.withFrozenRendering(function() { diff --git a/src/ol/interaction/dragrotateinteraction.js b/src/ol/interaction/dragrotateinteraction.js index 534ddd1618..c0a1915224 100644 --- a/src/ol/interaction/dragrotateinteraction.js +++ b/src/ol/interaction/dragrotateinteraction.js @@ -55,7 +55,7 @@ ol.interaction.DragRotate.prototype.handleDrag = function(mapBrowserEvent) { if (goog.isDef(this.lastAngle_)) { var delta = theta - this.lastAngle_; var view = map.getView(); - // FIXME supports View2D only + // FIXME works for View2D only goog.asserts.assertInstanceof(view, ol.View2D); map.requestRenderFrame(); ol.interaction.Interaction.rotateWithoutConstraints( @@ -70,7 +70,7 @@ ol.interaction.DragRotate.prototype.handleDrag = function(mapBrowserEvent) { */ ol.interaction.DragRotate.prototype.handleDragEnd = function(mapBrowserEvent) { var map = mapBrowserEvent.map; - // FIXME supports View2D only + // FIXME works for View2D only var view = map.getView(); goog.asserts.assertInstanceof(view, ol.View2D); ol.interaction.Interaction.rotate(map, view, view.getRotation(), undefined, diff --git a/src/ol/interaction/touchrotateinteraction.js b/src/ol/interaction/touchrotateinteraction.js index 4421695742..5cf8efd3e9 100644 --- a/src/ol/interaction/touchrotateinteraction.js +++ b/src/ol/interaction/touchrotateinteraction.js @@ -101,6 +101,7 @@ ol.interaction.TouchRotate.prototype.handleTouchMove = // rotate if (this.rotating_) { + // FIXME works for View2D only var view = map.getView().getView2D(); map.requestRenderFrame(); ol.interaction.Interaction.rotateWithoutConstraints(map, view, @@ -116,6 +117,7 @@ ol.interaction.TouchRotate.prototype.handleTouchEnd = function(mapBrowserEvent) { if (this.targetTouches.length < 2) { var map = mapBrowserEvent.map; + // FIXME works for View2D only var view = map.getView().getView2D(); if (this.rotating_) { ol.interaction.Interaction.rotate( diff --git a/src/ol/interaction/touchzoominteraction.js b/src/ol/interaction/touchzoominteraction.js index 2a95e6d842..58be7bd4bf 100644 --- a/src/ol/interaction/touchzoominteraction.js +++ b/src/ol/interaction/touchzoominteraction.js @@ -71,6 +71,7 @@ ol.interaction.TouchZoom.prototype.handleTouchMove = } var map = mapBrowserEvent.map; + // FIXME works for View2D only var view = map.getView().getView2D(); // scale anchor point. @@ -95,6 +96,7 @@ ol.interaction.TouchZoom.prototype.handleTouchEnd = function(mapBrowserEvent) { if (this.targetTouches.length < 2) { var map = mapBrowserEvent.map; + // FIXME works for View2D only var view = map.getView().getView2D(); // Zoom to final resolution, with an animation, and provide a // direction not to zoom out/in if user was pinching in/out.