One direction pinch zoom
This commit is contained in:
@@ -100,7 +100,7 @@ ol.source.ImageSource.prototype.createImage =
|
||||
ol.source.ImageSource.prototype.findNearestResolution =
|
||||
function(resolution) {
|
||||
if (!goog.isNull(this.resolutions_)) {
|
||||
var idx = ol.array.linearFindNearest(this.resolutions_, resolution);
|
||||
var idx = ol.array.linearFindNearest(this.resolutions_, resolution, 0);
|
||||
resolution = this.resolutions_[idx];
|
||||
}
|
||||
return resolution;
|
||||
|
||||
Reference in New Issue
Block a user