aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/core
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-08-27 17:14:47 -0700
committerAnton Tananaev <anton@traccar.org>2023-08-27 17:14:47 -0700
commit7ab97c162e7bf7db765f9dc04634c37a6b3d3151 (patch)
treeda274dd3bc03a2c6a1c5a25ec8029300581b9ced /modern/src/map/core
parentf0c68ae16eb7b64f5fbd7aa7bf0db7ff8e6c2f92 (diff)
downloadtrackermap-web-7ab97c162e7bf7db765f9dc04634c37a6b3d3151.tar.gz
trackermap-web-7ab97c162e7bf7db765f9dc04634c37a6b3d3151.tar.bz2
trackermap-web-7ab97c162e7bf7db765f9dc04634c37a6b3d3151.zip
Info instead of primary color
Diffstat (limited to 'modern/src/map/core')
-rw-r--r--modern/src/map/core/preloadImages.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/modern/src/map/core/preloadImages.js b/modern/src/map/core/preloadImages.js
index 043de588..31994804 100644
--- a/modern/src/map/core/preloadImages.js
+++ b/modern/src/map/core/preloadImages.js
@@ -55,7 +55,6 @@ export const mapIconKey = (category) => (mapIcons.hasOwnProperty(category) ? cat
export const mapImages = {};
const mapPalette = createPalette({
- primary: { main: indigo[900] },
neutral: { main: grey[500] },
});
@@ -65,7 +64,7 @@ export default async () => {
mapImages.direction = await prepareIcon(await loadImage(directionSvg));
await Promise.all(Object.keys(mapIcons).map(async (category) => {
const results = [];
- ['primary', 'success', 'error', 'neutral'].forEach((color) => {
+ ['info', 'success', 'error', 'neutral'].forEach((color) => {
results.push(loadImage(mapIcons[category]).then((icon) => {
mapImages[`${category}-${color}`] = prepareIcon(background, icon, mapPalette[color].main);
}));