Make View2D-only comments more consistent

This commit is contained in:
Tom Payne
2013-06-25 17:10:45 +02:00
parent d96ea1cb97
commit a4e8e529c4
4 changed files with 7 additions and 2 deletions

View File

@@ -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,