Skip to content

Commit

Permalink
Merge pull request #744 from OpenGeoscience/fix-uniform-opacity
Browse files Browse the repository at this point in the history
Fix polygon fill and opacity interaction.
  • Loading branch information
manthey authored Nov 1, 2017
2 parents 4740b5e + 27ef88f commit c8bb321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gl/polygonFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit c8bb321

Please sign in to comment.