From 0aecbc3bf856b17f42e363eff2bac4fb0ce1f7ed Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 11 Jun 2022 16:51:50 -0700 Subject: Preference for map layers --- modern/src/map/switcher/switcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modern/src/map/switcher') diff --git a/modern/src/map/switcher/switcher.js b/modern/src/map/switcher/switcher.js index d96f7ffc..848abc40 100644 --- a/modern/src/map/switcher/switcher.js +++ b/modern/src/map/switcher/switcher.js @@ -24,7 +24,7 @@ export class SwitcherControl { } } if (!selectedStyle) { - this.styles[0].id; + selectedStyle = this.styles[0].id; } while (this.mapStyleContainer.firstChild) { -- cgit v1.2.3