From ad8484a08ef7eabb41afb33a9774ba8502da1d53 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 17 Apr 2022 15:38:40 -0700 Subject: Handle query parameters --- modern/src/map/Map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modern/src/map') diff --git a/modern/src/map/Map.js b/modern/src/map/Map.js index 7c87797d..2555e23f 100644 --- a/modern/src/map/Map.js +++ b/modern/src/map/Map.js @@ -42,14 +42,14 @@ const updateReadyValue = (value) => { const initMap = async () => { if (ready) return; if (!map.hasImage('background')) { - const background = await loadImage('images/background.svg'); + const background = await loadImage('/images/background.svg'); map.addImage('background', await prepareIcon(background), { pixelRatio: window.devicePixelRatio, }); await Promise.all(deviceCategories.map(async (category) => { const results = []; ['positive', 'negative', 'neutral'].forEach((color) => { - results.push(loadImage(`images/icon/${category}.svg`).then((icon) => { + results.push(loadImage(`/images/icon/${category}.svg`).then((icon) => { map.addImage(`${category}-${color}`, prepareIcon(background, icon, palette.colors[color]), { pixelRatio: window.devicePixelRatio, }); -- cgit v1.2.3