replaces line-color with marke prefixed
This commit is contained in:
parent
05e1137fe9
commit
994aeedf95
@ -110,13 +110,13 @@ var carto = global.carto || require('carto');
|
||||
return null;
|
||||
}
|
||||
|
||||
if (st['marker-opacity'] === 0 && !st['line-opacity']) {
|
||||
if (st['marker-opacity'] === 0 && !st['marker-line-opacity']) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var canvas = this._createCanvas();
|
||||
// take into account the exterior ring to calculate the size
|
||||
var canvasSize = (st['line-width'] || 0) + pointSize*2;
|
||||
var canvasSize = (st['marker-line-width'] || 0) + pointSize*2;
|
||||
var ctx = canvas.getContext('2d');
|
||||
var w = ctx.width = canvas.width = ctx.height = canvas.height = Math.ceil(canvasSize);
|
||||
ctx.translate(w/2, w/2);
|
||||
|
Loading…
Reference in New Issue
Block a user