Skip to content

Commit

Permalink
fix issue with alpha channel for interval colormap
Browse files Browse the repository at this point in the history
Rate limit · GitHub

Access has been restricted

You have triggered a rate limit.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

alessioarena committed Oct 24, 2023
1 parent 4730f13 commit a002574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/titiler/extensions/titiler/extensions/wms.py
Original file line number Diff line number Diff line change
@@ -541,7 +541,7 @@ def _enforce_aspect_ratio(fig, ax, aspect_ratio):
# this time we should receive a sequence [(min_interval, max_interval), rgba_code]
for b, c in colormap:
bounds.append(b[0])
colors.append([val/255 for val in c])
colors.append([c[0]/255, c[1]/255, c[2]/255] + [1])
# remember to close the last interval
bounds.append(b[1])

0 comments on commit a002574

Please sign in to comment.