Skip to content

Commit b138d27

Browse files
xssfoxTheSkorm
authored andcommitted
add fix for plot hover prediction
1 parent 57808c1 commit b138d27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/plot_config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ function updateLegend(pos) {
7777

7878
if(outside && pij !== undefined) {
7979
if(!polyMarker) {
80-
try {polyMarker = new L.Marker(vehicles[follow_vehicle].prediction_polyline.getLatLngs()[pij]).addTo(map);} catch (e) {};
80+
try {polyMarker = new L.Marker(vehicles[follow_vehicle].prediction_polyline[0].getLatLngs()[pij]).addTo(map);} catch (e) {};
8181
} else {
82-
try {polyMarker.setLatLng(vehicles[follow_vehicle].prediction_polyline.getLatLngs()[pij]);} catch (e) {};
82+
try {polyMarker.setLatLng(vehicles[follow_vehicle].prediction_polyline[0].getLatLngs()[pij]);} catch (e) {};
8383
}
8484

8585
}

0 commit comments

Comments
 (0)