From 75e62d6f56bffb8d4fd18ce7d2d9077821095c85 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 21 Aug 2021 16:13:36 -0700 Subject: Remove unnecessary escaping --- 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 014a35e0..643b6ec0 100644 --- a/modern/src/map/switcher/switcher.js +++ b/modern/src/map/switcher/switcher.js @@ -38,7 +38,7 @@ export class SwitcherControl { } this.beforeSwitch(); let uri = srcElement.dataset.uri; - 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(); this.mapStyleContainer.style.display = 'none'; -- cgit v1.2.3