fix: 修复图层更新 scale 失效

This commit is contained in:
shihui 2023-01-11 17:05:43 +08:00
parent 44d31b8fbc
commit d2161acc7b
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}