View2D NoConstraint methods renamed

This commit is contained in:
Éric Lemoine
2013-03-05 12:51:03 +01:00
parent 29e610b9f3
commit b884f2f25d
4 changed files with 9 additions and 8 deletions

View File

@@ -53,7 +53,7 @@ ol.interaction.DragRotate.prototype.handleDrag = function(mapBrowserEvent) {
// FIXME supports View2D only
goog.asserts.assert(view instanceof ol.View2D);
map.requestRenderFrame();
view.rotateNoConstraint(map, view.getRotation() - delta);
view.rotateWithoutConstraints(map, view.getRotation() - delta);
}
this.lastAngle_ = theta;
};

View File

@@ -98,7 +98,8 @@ ol.interaction.TouchRotate.prototype.handleTouchMove =
// rotate
if (this.rotating_) {
view.rotateNoConstraint(map, view.getRotation() + rotationDelta, anchor);
view.rotateWithoutConstraints(map, view.getRotation() + rotationDelta,
anchor);
}
};

View File

@@ -65,7 +65,7 @@ ol.interaction.TouchZoom.prototype.handleTouchMove =
var anchor = map.getCoordinateFromPixel(centroid);
// scale, bypass the resolution constraint
view.zoomNoConstraint(map, view.getResolution() * scaleDelta, anchor);
view.zoomWithoutConstraints(map, view.getResolution() * scaleDelta, anchor);
};