Remove IE image smoothing fallback

This commit is contained in:
Maximilian Krög
2022-07-30 22:36:32 +02:00
parent 37aaf8ed4b
commit 6a6d2cd612
5 changed files with 7 additions and 32 deletions
+2 -3
View File
@@ -1,7 +1,6 @@
/**
* @module ol/reproj
*/
import {IMAGE_SMOOTHING_DISABLED} from './renderer/canvas/common.js';
import {
containsCoordinate,
createEmpty,
@@ -226,7 +225,7 @@ export function render(
);
if (!opt_interpolate) {
Object.assign(context, IMAGE_SMOOTHING_DISABLED);
context.imageSmoothingEnabled = false;
}
if (sources.length === 0) {
@@ -254,7 +253,7 @@ export function render(
);
if (!opt_interpolate) {
Object.assign(stitchContext, IMAGE_SMOOTHING_DISABLED);
stitchContext.imageSmoothingEnabled = false;
}
const stitchScale = pixelRatio / sourceResolution;