From 5c004ee546da7bfa3314c579326997f48d9fbfd6 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Tue, 14 Dec 2021 12:40:57 +0100 Subject: [PATCH] Update __getFullValue in stack --- src/style_manager/model/PropertyStack.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/style_manager/model/PropertyStack.js b/src/style_manager/model/PropertyStack.js index 36020b632..ed0c7162f 100644 --- a/src/style_manager/model/PropertyStack.js +++ b/src/style_manager/model/PropertyStack.js @@ -56,8 +56,8 @@ export default Property.extend({ if (opts.__up || !layer) return; const name = prop.getName(); layer.upValues({ [name]: prop.__getFullValue() }); - const value = this.__getFullValue(); - this.upValue(value, opts); + // const value = this.__getFullValue(); + // this.upValue(value, opts); this.__upTargetsStyleProps(opts); }, @@ -329,14 +329,9 @@ export default Property.extend({ __getFullValue() { if (this.get('detached')) return ''; - const name = this.getName(); + const style = this.getStyleFromLayers(); - return this.getLayers() - .map(l => this.getStyleFromLayer(l)) - .map(s => s[name]) - .filter(Boolean) - .map(v => v?.trim()) - .join(this.get('layerSeparator')); + return style[this.getName()]; }, /**