From f63b037d0edfcd72858f9363f50b3fd0cd28a8b5 Mon Sep 17 00:00:00 2001 From: Francisco Dans Date: Mon, 16 Mar 2015 17:29:48 +0100 Subject: [PATCH] sets marker-opacity as preliminary global opacity value --- lib/torque/renderer/cartocss_render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/torque/renderer/cartocss_render.js b/lib/torque/renderer/cartocss_render.js index 1e06259..9e5e2a5 100644 --- a/lib/torque/renderer/cartocss_render.js +++ b/lib/torque/renderer/cartocss_render.js @@ -23,7 +23,7 @@ } // stroke - ctx.globalAlpha = 1.0; + ctx.globalAlpha = st['marker-opacity'] >=0 ? st['marker-opacity']: 1; if (st['marker-line-color'] && st['marker-line-width'] && st['marker-line-width'] > LINEWIDTH_MIN_VALUE) { if (st['marker-line-opacity'] !== undefined) { ctx.globalAlpha = st['marker-line-opacity'];