Rename view.getView2DState() to view.getState()

This commit is contained in:
Tim Schaub
2014-06-26 16:32:19 -04:00
parent b88d2aebc9
commit 2e88f911dd
8 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -102,7 +102,7 @@ ol.interaction.PinchRotate.prototype.handlePointerDrag =
// rotate
if (this.rotating_) {
var view = map.getView();
var view2DState = view.getView2DState();
var view2DState = view.getState();
map.render();
ol.interaction.Interaction.rotateWithoutConstraints(map, view,
view2DState.rotation + rotationDelta, this.anchor_);
@@ -120,7 +120,7 @@ ol.interaction.PinchRotate.prototype.handlePointerUp =
var view = map.getView();
view.setHint(ol.ViewHint.INTERACTING, -1);
if (this.rotating_) {
var view2DState = view.getView2DState();
var view2DState = view.getState();
ol.interaction.Interaction.rotate(
map, view, view2DState.rotation, this.anchor_,
ol.ROTATE_ANIMATION_DURATION);