From ed29dde55298ecdad114d1eb0cc1c5849af07516 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Tue, 26 Dec 2017 19:33:47 +0100 Subject: [PATCH] Clone backgroundFill and backgroundStroke --- src/ol/style/text.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ol/style/text.js b/src/ol/style/text.js index 0a8ee5c9b5..47f844564d 100644 --- a/src/ol/style/text.js +++ b/src/ol/style/text.js @@ -155,7 +155,9 @@ ol.style.Text.prototype.clone = function() { fill: this.getFill() ? this.getFill().clone() : undefined, stroke: this.getStroke() ? this.getStroke().clone() : undefined, offsetX: this.getOffsetX(), - offsetY: this.getOffsetY() + offsetY: this.getOffsetY(), + backgroundFill: this.getBackgroundFill() ? this.getBackgroundFill().clone() : undefined, + backgroundStroke: this.getBackgroundStroke() ? this.getBackgroundStroke().clone() : undefined }); };