From 2773189edbec963ebb874c545c68134d1332810e Mon Sep 17 00:00:00 2001 From: Petapton <14984292+Petapton@users.noreply.github.com> Date: Tue, 31 Jan 2023 19:30:51 +0100 Subject: [PATCH] Fix trip map --- psa_car_controller/web/assets/clientside.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psa_car_controller/web/assets/clientside.js b/psa_car_controller/web/assets/clientside.js index 5ce78be..ccd21a5 100644 --- a/psa_car_controller/web/assets/clientside.js +++ b/psa_car_controller/web/assets/clientside.js @@ -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) {