Only set line dash if it is supported
This commit is contained in:
@@ -413,7 +413,9 @@ ol.render.canvas.Immediate.prototype.setFillStrokeStyles_ = function() {
|
||||
state.currentLineWidth != lineWidth) {
|
||||
context.strokeStyle = strokeStyle;
|
||||
context.lineCap = lineCap;
|
||||
context.setLineDash(lineDash);
|
||||
if (goog.isDef(context.setLineDash)) {
|
||||
context.setLineDash(lineDash);
|
||||
}
|
||||
context.lineJoin = lineJoin;
|
||||
context.miterLimit = miterLimit;
|
||||
context.lineWidth = lineWidth;
|
||||
|
||||
Reference in New Issue
Block a user