diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-21 14:28:52 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-21 14:28:52 -0700 |
commit | ada1d9242961e009711e7354adbe416b87882b24 (patch) | |
tree | 964e0001825fa2dcc5c65cada18bafd2a7af7e79 /modern/src/map/core | |
parent | fcaa089ea298c9067a2b09a168cb4d90c88e8b54 (diff) | |
download | trackermap-web-ada1d9242961e009711e7354adbe416b87882b24.tar.gz trackermap-web-ada1d9242961e009711e7354adbe416b87882b24.tar.bz2 trackermap-web-ada1d9242961e009711e7354adbe416b87882b24.zip |
Fix modern app issues
Diffstat (limited to 'modern/src/map/core')
-rw-r--r-- | modern/src/map/core/Map.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/map/core/Map.js b/modern/src/map/core/Map.js index aee72312..cd7b8988 100644 --- a/modern/src/map/core/Map.js +++ b/modern/src/map/core/Map.js @@ -45,14 +45,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, }); |