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
+1 -2
View File
@@ -83,8 +83,7 @@ function onBoxEnd() {
const resolution = view.getResolutionForExtent(extent, size);
const zoom = view.getValidZoomLevel(view.getZoomForResolution(resolution));
let center = getCenter(extent);
center = view.constrainCenter(center);
const center = getCenter(extent);
view.animate({
zoom: zoom,