aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/Map.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/map/Map.js')
-rw-r--r--modern/src/map/Map.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/modern/src/map/Map.js b/modern/src/map/Map.js
index 8a43e97b..014268cd 100644
--- a/modern/src/map/Map.js
+++ b/modern/src/map/Map.js
@@ -37,9 +37,10 @@ const updateReadyValue = value => {
const initMap = async () => {
const background = await loadImage('images/background.svg');
+ map.addImage('background', await loadIcon(background), { pixelRatio: window.devicePixelRatio });
await Promise.all(deviceCategories.map(async category => {
if (!map.hasImage(category)) {
- const imageData = await loadIcon(category, background, `images/icon/${category}.svg`);
+ const imageData = await loadIcon(background, `images/icon/${category}.svg`);
map.addImage(category, imageData, { pixelRatio: window.devicePixelRatio });
}
}));