aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/switcher/switcher.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-27 17:58:51 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-27 17:58:51 -0700
commit4f39902f1312b2927859161623e8eb9626b93340 (patch)
tree7be12523cdf625e85809d10cde0a21cebfb46232 /modern/src/map/switcher/switcher.js
parentee596c3a04762904d550430325f4ee1701c8da7d (diff)
downloadtrackermap-web-4f39902f1312b2927859161623e8eb9626b93340.tar.gz
trackermap-web-4f39902f1312b2927859161623e8eb9626b93340.tar.bz2
trackermap-web-4f39902f1312b2927859161623e8eb9626b93340.zip
Fix map re-rendering
Diffstat (limited to 'modern/src/map/switcher/switcher.js')
-rw-r--r--modern/src/map/switcher/switcher.js1
1 files changed, 1 insertions, 0 deletions
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;
}
}