Merge pull request #11893 from mjjurkoic/issue-11860

Pass the renderer function to the cloned style
This commit is contained in:
Andreas Hocevar
2021-01-13 09:48:13 +01:00
committed by GitHub
2 changed files with 14 additions and 0 deletions

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(),
stroke: this.getStroke() ? this.getStroke().clone() : undefined,
text: this.getText() ? this.getText().clone() : undefined,
zIndex: this.getZIndex(),