Rename view.getView2DState() to view.getState()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user