aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map/MapPositions.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-05 17:48:00 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-05 17:48:00 -0700
commit89928e3a9a9356b96c2d02c9682161295ad73641 (patch)
treeb3d250a62a39fe196409fabbcda1058cb15fc375 /modern/src/map/MapPositions.js
parent834d57c9eb14fff48f4444af198f0a10ab1b72a2 (diff)
downloadtrackermap-web-89928e3a9a9356b96c2d02c9682161295ad73641.tar.gz
trackermap-web-89928e3a9a9356b96c2d02c9682161295ad73641.tar.bz2
trackermap-web-89928e3a9a9356b96c2d02c9682161295ad73641.zip
Support position color (fix #805)
Diffstat (limited to 'modern/src/map/MapPositions.js')
-rw-r--r--modern/src/map/MapPositions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/map/MapPositions.js b/modern/src/map/MapPositions.js
index 070ec0c8..89a48df1 100644
--- a/modern/src/map/MapPositions.js
+++ b/modern/src/map/MapPositions.js
@@ -20,7 +20,7 @@ const MapPositions = ({ positions, onClick, showStatus }) => {
deviceId: position.deviceId,
name: device.name,
category: device.category || 'default',
- color: showStatus ? getStatusColor(device.status) : 'neutral',
+ color: showStatus ? position.attributes.color || getStatusColor(device.status) : 'neutral',
};
};