mirror of https://gitee.com/antv-l7/antv-l7
fix: 修复热力图不显示 (#1437)
Co-authored-by: shihui <yiqianyao.yqy@alibaba-inc.com>
This commit is contained in:
parent
034744268a
commit
1307521d8d
|
@ -233,6 +233,10 @@ export default class HeatMapModel extends BaseModel {
|
||||||
intensity = 10,
|
intensity = 10,
|
||||||
radius = 5,
|
radius = 5,
|
||||||
} = this.layer.getLayerConfig() as IHeatMapLayerStyleOptions;
|
} = this.layer.getLayerConfig() as IHeatMapLayerStyleOptions;
|
||||||
|
|
||||||
|
this.layerService.beforeRenderData(this.layer);
|
||||||
|
this.layer.hooks.beforeRender.call();
|
||||||
|
|
||||||
this.intensityModel?.draw({
|
this.intensityModel?.draw({
|
||||||
uniforms: {
|
uniforms: {
|
||||||
u_opacity: opacity || 1.0,
|
u_opacity: opacity || 1.0,
|
||||||
|
@ -240,6 +244,8 @@ export default class HeatMapModel extends BaseModel {
|
||||||
u_intensity: intensity,
|
u_intensity: intensity,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.layer.hooks.afterRender.call();
|
||||||
}
|
}
|
||||||
|
|
||||||
private drawColorMode() {
|
private drawColorMode() {
|
||||||
|
|
Loading…
Reference in New Issue