diff --git a/src/viewport.js b/src/viewport.js index ba65048b..e5c4f51a 100644 --- a/src/viewport.js +++ b/src/viewport.js @@ -584,7 +584,8 @@ $.Viewport.prototype = { if (bounds.x !== constrainedBounds.x || bounds.y !== constrainedBounds.y || immediately) { - this.fitBounds(constrainedBounds.rotate(this.getRotation()), + this.fitBounds( + constrainedBounds.rotate(-this.getRotation()), immediately); } return this;