Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix chase car icons not being rotated based on chase-car heading
  • Loading branch information
Mark Jessop authored and Mark Jessop committed Jun 15, 2024
commit b4062483d34e0e99bc59d8a5000031367fcb7b9c
2 changes: 1 addition & 1 deletion js/tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -3004,7 +3004,7 @@ function addPosition(position) {
};

// if car doesn't report heading, we calculate it from the last position
if(vehicle.num_positions > 1 && vehicle.vehicle_type == 'car' && 'gps_heading' in position && position.gps_heading === "") {
if(vehicle.num_positions > 1 && vehicle.vehicle_type == 'car') {

// Source
var startLat = toRadians(vehicle.curr_position.gps_lat);
Expand Down