Support anchor for rotation animations

This commit is contained in:
Tim Schaub
2016-11-05 20:49:15 -06:00
parent c95aa39dde
commit 3acfe79c78
2 changed files with 6 additions and 8 deletions

View File

@@ -72,7 +72,7 @@ document.getElementById('rotate-right').addEventListener('click', function() {
document.getElementById('rotate-around-rome').addEventListener('click', function() {
view.animate({
rotation: view.getRotation() + 2 * Math.PI,
rotationAnchor: rome
anchor: rome
});
});