Skip to content

Commit 7574157

Browse files
fix displaying correct length for prediction path
1 parent 10b511e commit 7574157

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/tracker.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,9 +729,11 @@ function redrawPrediction(vehicle_index) {
729729
clickable: true,
730730
draggable: false,
731731
});
732-
vehicle.prediction_polyline.path_length = path_length;
733732
google.maps.event.addListener(vehicle.prediction_polyline, 'click', mapInfoBox_handle_path);
734733
}
734+
735+
vehicle.prediction_polyline.path_length = path_length;
736+
735737
var image_src;
736738
if(vehicle_names[vehicle_index] != "wb8elk2") { // WhiteStar
737739
var html = "";

0 commit comments

Comments
 (0)