diff options
author | Anton Tananaev <anton@traccar.org> | 2022-04-16 16:08:03 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-04-16 16:08:03 -0700 |
commit | 838e1b969162b73b1bbafab75203998e7bf60979 (patch) | |
tree | bf99356e4040fd836c4775777f170c06e3460136 /modern/src/map/Map.js | |
parent | daacba8e25f5c60c77fab15e9392f43be3fa7a67 (diff) | |
download | trackermap-web-838e1b969162b73b1bbafab75203998e7bf60979.tar.gz trackermap-web-838e1b969162b73b1bbafab75203998e7bf60979.tar.bz2 trackermap-web-838e1b969162b73b1bbafab75203998e7bf60979.zip |
Clean up palette and colors
Diffstat (limited to 'modern/src/map/Map.js')
-rw-r--r-- | modern/src/map/Map.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/map/Map.js b/modern/src/map/Map.js index bbfe4764..deb2ec9b 100644 --- a/modern/src/map/Map.js +++ b/modern/src/map/Map.js @@ -48,9 +48,9 @@ const initMap = async () => { }); await Promise.all(deviceCategories.map(async (category) => { const results = []; - ['green', 'red', 'gray'].forEach((color) => { + ['positive', 'negative', 'neutral'].forEach((color) => { results.push(loadImage(`images/icon/${category}.svg`).then((icon) => { - map.addImage(`${category}-${color}`, prepareIcon(background, icon, palette.common[color]), { + map.addImage(`${category}-${color}`, prepareIcon(background, icon, palette.colors[color]), { pixelRatio: window.devicePixelRatio, }); })); |