From 4f39902f1312b2927859161623e8eb9626b93340 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 27 May 2022 17:58:51 -0700 Subject: Fix map re-rendering --- modern/src/map/switcher/switcher.js | 1 + 1 file changed, 1 insertion(+) (limited to 'modern/src/map/switcher/switcher.js') diff --git a/modern/src/map/switcher/switcher.js b/modern/src/map/switcher/switcher.js index 22ff9488..742ff8c3 100644 --- a/modern/src/map/switcher/switcher.js +++ b/modern/src/map/switcher/switcher.js @@ -43,6 +43,7 @@ export class SwitcherControl { if (this.currentStyle !== selectedStyle) { this.onSelectStyle(selectedStyleElement); + this.currentStyle = selectedStyle; } } -- cgit v1.2.3