diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-08-21 16:48:19 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-08-21 16:48:19 -0700 |
commit | afed83a89ecea62f7f1fd3ae3c99cdf95e52dab6 (patch) | |
tree | 00fd458a1070191e8582115907b71b102b26310a /modern/src/map/switcher/switcher.js | |
parent | 230b5b53460982ef888d309725f027ea29b29bb6 (diff) | |
download | trackermap-web-afed83a89ecea62f7f1fd3ae3c99cdf95e52dab6.tar.gz trackermap-web-afed83a89ecea62f7f1fd3ae3c99cdf95e52dab6.tar.bz2 trackermap-web-afed83a89ecea62f7f1fd3ae3c99cdf95e52dab6.zip |
Fix style
Diffstat (limited to 'modern/src/map/switcher/switcher.js')
-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 a3805f6b..cb7326f4 100644 --- a/modern/src/map/switcher/switcher.js +++ b/modern/src/map/switcher/switcher.js @@ -39,7 +39,7 @@ export class SwitcherControl { this.beforeSwitch(); let uri = JSON.parse(srcElement.dataset.uri); if (typeof uri === 'string') { - Object.entries(this.variables).forEach(([key, value]) => uri = uri.replaceAll(`$\{${key}}`, value)); + Object.entries(this.variables).forEach(([key, value]) => uri = uri.replaceAll(`\{${key}}`, value)); } this.map.setStyle(uri); this.afterSwitch(); |