Fix sourceResolution value in view.animate

This commit is contained in:
oterral
2016-12-02 15:47:58 +01:00
parent bdeaafcdf7
commit 9eda6df821
2 changed files with 52 additions and 1 deletions

View File

@@ -238,7 +238,7 @@ ol.View.prototype.animate = function(var_args) {
this.maxResolution_, options.zoom - this.minZoom_, 0);
resolution = animation.targetResolution;
} else if (options.resolution) {
animation.sourceResolution = this.getResolution();
animation.sourceResolution = resolution;
animation.targetResolution = options.resolution;
resolution = animation.targetResolution;
}