From 994aeedf958d5658d0771d049db94ad30885497d Mon Sep 17 00:00:00 2001 From: javi Date: Fri, 19 Dec 2014 09:30:43 +0100 Subject: [PATCH] replaces line-color with marke prefixed --- lib/torque/renderer/point.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/torque/renderer/point.js b/lib/torque/renderer/point.js index 5130133..e7db7cd 100644 --- a/lib/torque/renderer/point.js +++ b/lib/torque/renderer/point.js @@ -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);