From eaed37da965f8b98e982f9de740c443a9620c25f Mon Sep 17 00:00:00 2001 From: Guillaume Beraudo Date: Thu, 15 Nov 2018 18:24:20 +0100 Subject: [PATCH] Fix width comparison --- src/ol/render/canvas/InstructionsExecutor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/render/canvas/InstructionsExecutor.js b/src/ol/render/canvas/InstructionsExecutor.js index ede2f436db..94d4a0f6e4 100644 --- a/src/ol/render/canvas/InstructionsExecutor.js +++ b/src/ol/render/canvas/InstructionsExecutor.js @@ -722,7 +722,7 @@ class CanvasInstructionsExecutor { let widthIndex = 0; for (; d < dd; d += 2) { if (geometryWidths) { - if (geometryWidths[widthIndex++] < width) { + if (geometryWidths[widthIndex++] < width / this.pixelRatio) { continue; } }