Skip to content

Commit

Permalink
fix #7649, fix disabling repaint within custom layer render (#7667)
Browse files Browse the repository at this point in the history
  • Loading branch information
ansis authored Dec 4, 2018
1 parent 321a369 commit b57f79d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ui/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit b57f79d

Please sign in to comment.