Rename olx.View2DState to olx.ViewState and use viewState property

This commit is contained in:
Tim Schaub
2014-06-26 16:38:11 -04:00
parent 2e88f911dd
commit b9f444a008
27 changed files with 146 additions and 146 deletions
+4 -4
View File
@@ -102,10 +102,10 @@ ol.interaction.PinchRotate.prototype.handlePointerDrag =
// rotate
if (this.rotating_) {
var view = map.getView();
var view2DState = view.getState();
var viewState = view.getState();
map.render();
ol.interaction.Interaction.rotateWithoutConstraints(map, view,
view2DState.rotation + rotationDelta, this.anchor_);
viewState.rotation + rotationDelta, this.anchor_);
}
};
@@ -120,9 +120,9 @@ ol.interaction.PinchRotate.prototype.handlePointerUp =
var view = map.getView();
view.setHint(ol.ViewHint.INTERACTING, -1);
if (this.rotating_) {
var view2DState = view.getState();
var viewState = view.getState();
ol.interaction.Interaction.rotate(
map, view, view2DState.rotation, this.anchor_,
map, view, viewState.rotation, this.anchor_,
ol.ROTATE_ANIMATION_DURATION);
}
return false;