diff --git a/src/style_manager/model/PropertyStack.js b/src/style_manager/model/PropertyStack.js index 11bd257f2..b8cae2be1 100644 --- a/src/style_manager/model/PropertyStack.js +++ b/src/style_manager/model/PropertyStack.js @@ -41,6 +41,17 @@ export default Property.extend({ __upSelected() { if (!this.__hasCustom()) return; const sm = this.em.get('StyleManager'); + const selected = this.getSelectLayer(); + const values = selected?.getValues(); + + // Update properties by layer value + values && + this.getProperties().forEach(prop => { + const name = prop.getName(); + const value = values[name]; + !isUndefined(value) && prop.upValue(value, { __up: true }); + }); + sm.__trgEv(sm.events.layerSelect, { property: this }); },