Clone backgroundFill and backgroundStroke

This commit is contained in:
Andreas Hocevar
2017-12-26 19:33:47 +01:00
parent f2f5c5e958
commit 0158738aff
2 changed files with 11 additions and 1 deletions

View File

@@ -151,7 +151,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
});
};