Set default canvas lineJoin and lineCap to 'round'
This commit is contained in:
@@ -39,8 +39,6 @@ var styleFunction = function(feature, resolution) {
|
||||
styleArray = [new ol.style.Style({
|
||||
stroke: new ol.style.Stroke({
|
||||
color: color,
|
||||
lineCap: 'round',
|
||||
lineJoin: 'round',
|
||||
width: 3
|
||||
})
|
||||
})];
|
||||
|
||||
@@ -743,8 +743,8 @@
|
||||
/**
|
||||
* @typedef {Object} olx.style.StrokeOptions
|
||||
* @property {ol.Color|string|undefined} color Color.
|
||||
* @property {string|undefined} lineCap Line cap style: `butt`, `round`, or `square`. Default is `butt`.
|
||||
* @property {string|undefined} lineJoin Line join style: `bevel`, `round`, or `miter`. Default is `miter`.
|
||||
* @property {string|undefined} lineCap Line cap style: `butt`, `round`, or `square`. Default is `round`.
|
||||
* @property {string|undefined} lineJoin Line join style: `bevel`, `round`, or `miter`. Default is `round`.
|
||||
* @property {Array.<number>|undefined} lineDash Line dash pattern. Default is `undefined` (no dash).
|
||||
* @property {number|undefined} miterLimit Miter limit. Default is `10`.
|
||||
* @property {number|undefined} width Width.
|
||||
|
||||
@@ -18,7 +18,7 @@ ol.render.canvas.defaultFillStyle = ol.color.fromString('black');
|
||||
/**
|
||||
* @const {string}
|
||||
*/
|
||||
ol.render.canvas.defaultLineCap = 'butt';
|
||||
ol.render.canvas.defaultLineCap = 'round';
|
||||
|
||||
|
||||
/**
|
||||
@@ -30,7 +30,7 @@ ol.render.canvas.defaultLineDash = [];
|
||||
/**
|
||||
* @const {string}
|
||||
*/
|
||||
ol.render.canvas.defaultLineJoin = 'miter';
|
||||
ol.render.canvas.defaultLineJoin = 'round';
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user