mirror of https://gitee.com/antv-l7/antv-l7
fix(heatmap): setValue
This commit is contained in:
parent
b39f6c297a
commit
208ed7f613
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue