From 27ef88fa800ade958c3cc832e15f33f5f3bbc3a7 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Tue, 31 Oct 2017 14:14:32 -0400 Subject: [PATCH] Fix polygon fill and opacity interaction. When using a constant opacity but a non-constant fill, the fill would appear to not be honored. --- src/gl/polygonFeature.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/polygonFeature.js b/src/gl/polygonFeature.js index 14dd4d5194..59d3f20bb6 100644 --- a/src/gl/polygonFeature.js +++ b/src/gl/polygonFeature.js @@ -191,7 +191,6 @@ var gl_polygonFeature = function (arg) { fillOpacity = util.getGeomBuffer(geom, 'fillOpacity', numPts); d = d3 = 0; color = fillColorVal; - opacity = fillOpacityVal; fill = fillVal; for (k = 0; k < items.length; k += 1) { n = items[k].triangles.length; @@ -200,6 +199,7 @@ var gl_polygonFeature = function (arg) { itemIndex = items[k].itemIndex; original = items[k].original; uniform = uniformPolyFunc(item, itemIndex); + opacity = fillOpacityVal; if (uniform) { if (fillColorVal === undefined) { color = fillColorFunc(vertices[0], 0, item, itemIndex);