aboutsummaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-04-21 08:09:59 -0700
committerAnton Tananaev <anton@traccar.org>2024-04-21 08:09:59 -0700
commit75dee6d29fe222fe868b39718a9ecfeb22996e1b (patch)
treeeeb8cbbe8c27bf1c23110cb63a467195ff4ae1d2 /src/map
parentde420d4088ee8c34d463e2614f759702e11803e1 (diff)
downloadtrackermap-web-75dee6d29fe222fe868b39718a9ecfeb22996e1b.tar.gz
trackermap-web-75dee6d29fe222fe868b39718a9ecfeb22996e1b.tar.bz2
trackermap-web-75dee6d29fe222fe868b39718a9ecfeb22996e1b.zip
Show only if course is not zero
Diffstat (limited to 'src/map')
-rw-r--r--src/map/MapPositions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/MapPositions.js b/src/map/MapPositions.js
index 83160a7a..08bc6b83 100644
--- a/src/map/MapPositions.js
+++ b/src/map/MapPositions.js
@@ -32,10 +32,10 @@ const MapPositions = ({ positions, onClick, showStatus, selectedPosition, titleF
showDirection = false;
break;
case 'all':
- showDirection = true;
+ showDirection = position.course > 0;
break;
default:
- showDirection = selectedPositionId === position.id;
+ showDirection = selectedPositionId === position.id && position.course > 0;
break;
}
return {