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