sets marker-opacity as preliminary global opacity value

This commit is contained in:
Francisco Dans 2015-03-16 17:29:48 +01:00
parent 6232e16002
commit f63b037d0e

View File

@ -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'];