View / remove constrainCenter method

This commit is contained in:
jahow
2019-01-12 15:49:36 +01:00
committed by Olivier Guyot
parent c2c1aa01d3
commit d991dfa54a
5 changed files with 5 additions and 19 deletions

View File

@@ -234,7 +234,7 @@ class MouseWheelZoom extends Interaction {
}
if (this.lastAnchor_) {
const center = view.calculateCenterZoom(resolution, this.lastAnchor_);
view.setCenter(view.constrainCenter(center));
view.setCenter(center);
}
view.setResolution(resolution);