From 0807b44722b2566b0bd1c2b399708be536e27ee2 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Tue, 1 Sep 2020 09:27:17 +0100 Subject: [PATCH] Clear this.canvas_ whenever render() is called --- src/ol/style/RegularShape.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ol/style/RegularShape.js b/src/ol/style/RegularShape.js index b0b72005db..dfc480bc32 100644 --- a/src/ol/style/RegularShape.js +++ b/src/ol/style/RegularShape.js @@ -404,6 +404,7 @@ class RegularShape extends ImageStyle { this.draw_(renderOptions, context, 0, 0, 1); + this.canvas_ = {}; this.canvas_[1] = context.canvas; // canvas.width and height are rounded to the closest integer