View / better names for getValid* and applyParameters_ methods

This commit is contained in:
Olivier Guyot
2019-02-15 13:43:50 +01:00
parent c2af03f152
commit 405e206717
8 changed files with 43 additions and 46 deletions
+2 -2
View File
@@ -114,7 +114,7 @@ export function pan(view, delta, opt_duration) {
view.animate({
duration: opt_duration !== undefined ? opt_duration : 250,
easing: linear,
center: view.getValidCenter(center)
center: view.getConstrainedCenter(center)
});
}
}
@@ -132,7 +132,7 @@ export function zoomByDelta(view, delta, opt_anchor, opt_duration) {
return;
}
const newZoom = view.getValidZoomLevel(currentZoom + delta);
const newZoom = view.getConstrainedZoom(currentZoom + delta);
const newResolution = view.getResolutionForZoom(newZoom);
if (view.getAnimating()) {