mirror of https://gitee.com/antv-l7/antv-l7
fix: 修复图层更新 scale 失效
This commit is contained in:
parent
44d31b8fbc
commit
d2161acc7b
|
@ -672,6 +672,10 @@ export default class BaseLayer<ChildLayerStyleOptions = {}>
|
|||
} else {
|
||||
this.scaleOptions[field] = cfg;
|
||||
}
|
||||
if(this.inited) {
|
||||
// 在 layer 创建完成之后,更新 scale 需要重新进行数据映射
|
||||
this.dataState.dataSourceNeedUpdate = true;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue