diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-11 16:51:50 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-11 16:51:50 -0700 |
commit | 0aecbc3bf856b17f42e363eff2bac4fb0ce1f7ed (patch) | |
tree | 79eeaf8e4197a7ef3710fdd21641ebf0fda71566 /modern/src/map/switcher | |
parent | e34214fe32cafb19d871d3e20a2c5ad80de56a20 (diff) | |
download | trackermap-web-0aecbc3bf856b17f42e363eff2bac4fb0ce1f7ed.tar.gz trackermap-web-0aecbc3bf856b17f42e363eff2bac4fb0ce1f7ed.tar.bz2 trackermap-web-0aecbc3bf856b17f42e363eff2bac4fb0ce1f7ed.zip |
Preference for map layers
Diffstat (limited to 'modern/src/map/switcher')
-rw-r--r-- | modern/src/map/switcher/switcher.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |