From bb00a3e696a44d30c97d866b10dcb5b873cba912 Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Tue, 4 Dec 2018 17:25:38 +0200 Subject: [PATCH] fix #7649, fix disabling repaint within custom layer `render` --- src/ui/map.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ui/map.js b/src/ui/map.js index 5148e8839e8..277df72dc83 100755 --- a/src/ui/map.js +++ b/src/ui/map.js @@ -1828,7 +1828,12 @@ class Map extends Camera { * @memberof Map */ get repaint(): boolean { return !!this._repaint; } - set repaint(value: boolean) { this._repaint = value; this._update(); } + set repaint(value: boolean) { + if (this._repaint !== value) { + this._repaint = value; + this.triggerRepaint(); + } + } // show vertices get vertices(): boolean { return !!this._vertices; }