Fix trip map

This commit is contained in:
Petapton
2023-01-31 19:30:51 +01:00
committed by GitHub
parent 807d934ecc
commit 2773189edb
+1 -1
View File
@@ -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) {