Skip to content

Commit c8bb321

Browse files
authored
Merge pull request #744 from OpenGeoscience/fix-uniform-opacity
Fix polygon fill and opacity interaction.
2 parents 4740b5e + 27ef88f commit c8bb321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gl/polygonFeature.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ var gl_polygonFeature = function (arg) {
191191
fillOpacity = util.getGeomBuffer(geom, 'fillOpacity', numPts);
192192
d = d3 = 0;
193193
color = fillColorVal;
194-
opacity = fillOpacityVal;
195194
fill = fillVal;
196195
for (k = 0; k < items.length; k += 1) {
197196
n = items[k].triangles.length;
@@ -200,6 +199,7 @@ var gl_polygonFeature = function (arg) {
200199
itemIndex = items[k].itemIndex;
201200
original = items[k].original;
202201
uniform = uniformPolyFunc(item, itemIndex);
202+
opacity = fillOpacityVal;
203203
if (uniform) {
204204
if (fillColorVal === undefined) {
205205
color = fillColorFunc(vertices[0], 0, item, itemIndex);

0 commit comments

Comments
 (0)