From 208ed7f6136e748439a81e4a854e454e7c2f9dd2 Mon Sep 17 00:00:00 2001 From: thinkinggis Date: Tue, 7 May 2019 19:52:33 +0800 Subject: [PATCH] fix(heatmap): setValue --- src/layer/render/heatmap/heatmap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layer/render/heatmap/heatmap.js b/src/layer/render/heatmap/heatmap.js index c03d7f9b46..887f41f954 100644 --- a/src/layer/render/heatmap/heatmap.js +++ b/src/layer/render/heatmap/heatmap.js @@ -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;