From 81901c72c4bd322a1745bd03d0fa511e52ea5ac5 Mon Sep 17 00:00:00 2001 From: Michael Jurkoic Date: Thu, 7 Jan 2021 22:33:08 -0800 Subject: [PATCH] Pass the renderer function to the cloned style --- src/ol/style/Style.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ol/style/Style.js b/src/ol/style/Style.js index e12cba36af..7137c5cc61 100644 --- a/src/ol/style/Style.js +++ b/src/ol/style/Style.js @@ -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(),