replaces line-color with marke prefixed

This commit is contained in:
javi 2014-12-19 09:30:43 +01:00
parent 05e1137fe9
commit 994aeedf95

View File

@ -110,13 +110,13 @@ var carto = global.carto || require('carto');
return null; return null;
} }
if (st['marker-opacity'] === 0 && !st['line-opacity']) { if (st['marker-opacity'] === 0 && !st['marker-line-opacity']) {
return null; return null;
} }
var canvas = this._createCanvas(); var canvas = this._createCanvas();
// take into account the exterior ring to calculate the size // 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 ctx = canvas.getContext('2d');
var w = ctx.width = canvas.width = ctx.height = canvas.height = Math.ceil(canvasSize); var w = ctx.width = canvas.width = ctx.height = canvas.height = Math.ceil(canvasSize);
ctx.translate(w/2, w/2); ctx.translate(w/2, w/2);