View / removed the constrainRotation method

This commit is contained in:
jahow
2019-01-12 15:41:20 +01:00
committed by Olivier Guyot
parent e6c4b2ffd1
commit c2c1aa01d3
5 changed files with 7 additions and 31 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
*/
import ViewHint from '../ViewHint.js';
import {FALSE} from '../functions.js';
import {rotate, rotateWithoutConstraints} from './Interaction.js';
import {rotate} from './Interaction.js';
import PointerInteraction, {centroid as centroidFromPointers} from './Pointer.js';
import {disable} from '../rotationconstraint.js';
@@ -120,7 +120,7 @@ class PinchRotate extends PointerInteraction {
if (this.rotating_) {
const rotation = view.getRotation();
map.render();
rotateWithoutConstraints(view, rotation + rotationDelta, this.anchor_);
rotate(view, rotation + rotationDelta, this.anchor_);
}
}