aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/Map.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-04-16 16:08:03 -0700
committerAnton Tananaev <anton@traccar.org>2022-04-16 16:08:03 -0700
commit838e1b969162b73b1bbafab75203998e7bf60979 (patch)
treebf99356e4040fd836c4775777f170c06e3460136 /modern/src/map/Map.js
parentdaacba8e25f5c60c77fab15e9392f43be3fa7a67 (diff)
downloadtrackermap-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.js4
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,
});
}));