Deprecate the imageSmoothing option for sources

This commit is contained in:
Tim Schaub
2021-12-27 12:25:11 -07:00
parent 8d8632bff7
commit e2883fb658
48 changed files with 538 additions and 191 deletions

View File

@@ -32,7 +32,7 @@ class ReprojImage extends ImageBase {
* @param {number} pixelRatio Pixel ratio.
* @param {FunctionType} getImageFunction
* Function returning source images (extent, resolution, pixelRatio).
* @param {object} [opt_contextOptions] Properties to set on the canvas context.
* @param {boolean} interpolate Use linear interpolation when resampling.
*/
constructor(
sourceProj,
@@ -41,7 +41,7 @@ class ReprojImage extends ImageBase {
targetResolution,
pixelRatio,
getImageFunction,
opt_contextOptions
interpolate
) {
const maxSourceExtent = sourceProj.getExtent();
const maxTargetExtent = targetProj.getExtent();
@@ -124,9 +124,9 @@ class ReprojImage extends ImageBase {
/**
* @private
* @type {object}
* @type {boolean}
*/
this.contextOptions_ = opt_contextOptions;
this.interpolate_ = interpolate;
/**
* @private
@@ -191,7 +191,7 @@ class ReprojImage extends ImageBase {
],
0,
undefined,
this.contextOptions_
this.interpolate_
);
}
this.state = sourceState;