Pass the renderer function to the cloned style

This commit is contained in:
Michael Jurkoic
2021-01-07 22:33:08 -08:00
parent 834448472a
commit 81901c72c4

View File

@@ -219,6 +219,7 @@ class Style {
geometry: geometry,
fill: this.getFill() ? this.getFill().clone() : undefined,
image: this.getImage() ? this.getImage().clone() : undefined,
renderer: this.getRenderer() ? this.getRenderer() : undefined,
stroke: this.getStroke() ? this.getStroke().clone() : undefined,
text: this.getText() ? this.getText().clone() : undefined,
zIndex: this.getZIndex(),