From fc2fe25e696b0bca264d26f5869c47d7ec8476e2 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Thu, 30 Apr 2020 16:23:39 +0100 Subject: [PATCH] Use explicit test for smoothing disabled --- src/ol/reproj.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ol/reproj.js b/src/ol/reproj.js index 6a511bf04d..98e86d05fb 100644 --- a/src/ol/reproj.js +++ b/src/ol/reproj.js @@ -1,7 +1,8 @@ /** * @module ol/reproj */ -import {assign, isEmpty} from './obj.js'; +import {IMAGE_SMOOTHING_DISABLED} from './source/common.js'; +import {assign} from './obj.js'; import { containsCoordinate, createEmpty, @@ -330,7 +331,7 @@ export function render( context.save(); context.beginPath(); - if (isBrokenDiagonalRendering() || !isEmpty(opt_contextOptions)) { + if (isBrokenDiagonalRendering() || opt_contextOptions === IMAGE_SMOOTHING_DISABLED) { // Make sure that everything is on pixel boundaries const u0r = pixelRound(u0); const v0r = pixelRound(v0);