Clone backgroundFill and backgroundStroke

This commit is contained in:
Andreas Hocevar
2017-12-26 19:33:47 +01:00
parent 8a73db9331
commit ed29dde552

View File

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