small cleanup

This commit is contained in:
Tom 2022-12-06 16:53:19 -05:00
parent 256514bca6
commit 66b4b29424

View File

@ -719,8 +719,6 @@ $.Viewport.prototype = {
this.zoomTo(currentZoom, null, true); this.zoomTo(currentZoom, null, true);
this.fitBounds(constrainedBounds); this.fitBounds(constrainedBounds);
// this.zoomTo(newZoom, referencePoint, immediately);
} else { } else {
var rotatedNewBounds = newBounds.rotate(-this.getRotation()); var rotatedNewBounds = newBounds.rotate(-this.getRotation());
var referencePoint = rotatedNewBounds.getTopLeft().times(newZoom) var referencePoint = rotatedNewBounds.getTopLeft().times(newZoom)