Skip to content

Commit

Permalink
【fix】segmentNumber 旋转角度 修改不生效
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxiao-supermap committed Jul 19, 2024
1 parent c6dc5b4 commit c3066ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/layers/src/core/BaseLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,11 @@ export default class BaseLayer<ChildLayerStyleOptions = {}>
this.encodeStyle(newOption);

this.updateLayerConfig(newOption);

const needUpdateStyleAttributesOptions = ['segmentNumber', 'coverage', 'angle']
const isInit = Object.keys(rest).some(key=>needUpdateStyleAttributesOptions.includes(key))
if (isInit) {
this.hooks.init.promise();
}
return this;
}

Expand Down

0 comments on commit c3066ab

Please sign in to comment.