Merge pull request #7345 from ahocevar/line-width
Handle different lineWidth scaling in Safari
This commit is contained in:
@@ -327,7 +327,7 @@ ol.render.canvas.TextReplay.prototype.getImage_ = function(text, fill, stroke) {
|
||||
context.font = textState.font;
|
||||
if (stroke) {
|
||||
context.strokeStyle = strokeState.strokeStyle;
|
||||
context.lineWidth = strokeWidth * pixelRatio;
|
||||
context.lineWidth = strokeWidth * (ol.has.SAFARI ? pixelRatio : 1);
|
||||
context.lineCap = strokeState.lineCap;
|
||||
context.lineJoin = strokeState.lineJoin;
|
||||
context.miterLimit = strokeState.miterLimit;
|
||||
|
||||
Reference in New Issue
Block a user