Skip to content

Commit

Permalink
Merge pull request #478 from Petapton/patch-1
Browse files Browse the repository at this point in the history
fix : trip map
  • Loading branch information
flobz committed Apr 13, 2023
2 parents d102df2 + 2773189 commit b7c61fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psa_car_controller/web/assets/clientside.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function updateMap (data, oldFigure, x, y, lastPos) {
for (trip of trips) {
const xPos = trip.positions[xLabel]
figure.data[0].lat.push(...xPos, null)
figure.data[0].lon.push(...trip.positions[yLabel[0]])
figure.data[0].lon.push(...trip.positions[yLabel[0]], null)
figure.data[0].hovertext.push(...Array(xPos.length).fill(trip[yLabel[1]]), null)
}
if (trip) {
Expand Down

0 comments on commit b7c61fa

Please sign in to comment.