From 420e7d87ae39c3e12ccccc269b3606efd083477a Mon Sep 17 00:00:00 2001 From: gazza0 Date: Thu, 9 Jan 2020 02:52:21 -0800 Subject: [PATCH] Fixing issue #10497 on behalf of LarryHuang Since Larry is not able to access github, i'm committing on behalf of him, explanation of the issue and he's original fix can be found https://github.com/openlayers/openlayers/issues/10497 --- src/ol/render/canvas/TextBuilder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/render/canvas/TextBuilder.js b/src/ol/render/canvas/TextBuilder.js index 641801dba5..c14b3ce367 100644 --- a/src/ol/render/canvas/TextBuilder.js +++ b/src/ol/render/canvas/TextBuilder.js @@ -460,7 +460,7 @@ class CanvasTextBuilder extends CanvasBuilder { strokeState.lineCap + strokeState.lineDashOffset + '|' + strokeState.lineWidth + strokeState.lineJoin + strokeState.miterLimit + '[' + strokeState.lineDash.join() + ']' : ''; - this.textKey_ = textState.font + textState.scale + (textState.textAlign || '?'); + this.textKey_ = textState.font + textState.scale + (textState.textAlign || '?') + (textState.textBaseline || '?'); this.fillKey_ = fillState ? (typeof fillState.fillStyle == 'string' ? fillState.fillStyle : ('|' + getUid(fillState.fillStyle))) : '';