We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a652554 commit b82b1c3Copy full SHA for b82b1c3
js/tracker.js
@@ -1309,10 +1309,9 @@ function update(response) {
1309
// store in localStorage
1310
offline.set('positions', lastPositions);
1311
1312
- if(follow_vehicle != -1) {
1313
- var pos = vehicles[follow_vehicle].curr_position;
1314
- map.panTo(new google.maps.LatLng(pos.gps_lat, pos.gps_lon));
1315
- }
+ if(follow_vehicle != -1) {
+ panTo(follow_vehicle);
+ }
1316
}
1317
1318
if (got_positions && !zoomed_in) {
0 commit comments