Skip to content

Commit 5f7f9a1

Browse files
fixed the way bounds are determined during bootstrap
1 parent ba7b7d9 commit 5f7f9a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cache.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# version 270
2+
# version 281
33

44
# gogole maps files
55
http://maps.google.com/maps/api/js?v=3.10&sensor=false&language=en_us&key=AIzaSyCOqkcNey4CCyG4X0X5qxHAhCgD8g5DwXg

js/tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ function zoom_on_payload() {
12441244
// find the bounds of the ballons first and last positions
12451245
var bounds = new google.maps.LatLngBounds();
12461246
bounds.extend(vehicles[i].positions[0]);
1247-
bounds.extend(vehicles[i].marker.getPosition());
1247+
bounds.extend(vehicles[i].positions[vehicles[i].positions.length - 1]);
12481248

12491249
// fit the map to those bounds
12501250
map.fitBounds(bounds);

0 commit comments

Comments
 (0)