Fix sourceResolution value in view.animate

This commit is contained in:
oterral committed 2016-12-02 16:39:25 +01:00
1 parent bdeaafcdf7
commit 9eda6df821
2 files changed
+52 -1

No files matched your search

+1 -1
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;
}