Skip to content

Commit

Permalink
fix(heatmap): setValue
Browse files Browse the repository at this point in the history
  • Loading branch information
lzxue committed May 7, 2019
1 parent b39f6c2 commit 208ed7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layer/render/heatmap/heatmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function copyPass(layer) {
const style = layer.get('styleOptions');
const material = new HeatmapColorizeMaterial({
u_rampColors: layer.rampColors,
u_opacity: style.opacity
u_opacity: style.opacity || 1.0
}, {});
const copyPass = new ShaderPass(material, 'u_texture');
return copyPass;
Expand Down

0 comments on commit 208ed7f

Please sign in to comment.