Add reprojectionErrorThreshold option to the tiled image sources

This commit is contained in:
Petr Sloup
2015-07-23 15:04:58 +02:00
parent ebc1bc0096
commit 168b675191
13 changed files with 121 additions and 2 deletions

View File

@@ -85,6 +85,12 @@ ol.source.TileImage = function(options) {
*/
this.tileGridForProjection = {};
/**
* @private
* @type {number|undefined}
*/
this.reprojectionErrorThreshold_ = options.reprojectionErrorThreshold;
/**
* @private
* @type {boolean}
@@ -204,7 +210,8 @@ ol.source.TileImage.prototype.getTile =
projection, targetTileGrid,
z, x, y, pixelRatio, goog.bind(function(z, x, y, pixelRatio) {
return this.getTileInternal(z, x, y, pixelRatio, sourceProjection);
}, this), this.renderReprojectionEdges_);
}, this), this.reprojectionErrorThreshold_,
this.renderReprojectionEdges_);
cache.set(tileCoordKey, tile);
return tile;