gpstrek - Show target marker for waypoints

master
Martin Boonk 2022-11-03 21:09:59 +01:00
parent c382bef7d9
commit 2becffbdf7
1 changed files with 3 additions and 0 deletions

View File

@ -693,6 +693,9 @@ const compassSliceData = {
if (state.currentPos && state.currentPos.lon && state.route){
points.push({bearing:bearing(state.currentPos, getLast(state.route)), color:"#00f"});
}
if (state.currentPos && state.currentPos.lon && state.waypoint){
points.push({bearing:bearing(state.currentPos, state.waypoint), color:"#00f"});
}
return points;
},
getMarkers: function (){