]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Fixed a left over variable that should have been switched
authorDavid Seifried <david.c.seifried@gmail.com>
Fri, 26 Aug 2011 16:27:13 +0000 (12:27 -0400)
committerDavid Seifried <david.c.seifried@gmail.com>
Fri, 26 Aug 2011 16:27:13 +0000 (12:27 -0400)
plugins/googlemap/popcorn.googlemap.js

index e921b0f015764758b8d39ded8c5e96bd55b7ee47..c47819573c92a9e09040e023e975e730e0455500 100755 (executable)
@@ -208,10 +208,10 @@ var googleCallback;
                          ( current_time <= ( waypoint.interval * ( i + 2 ) ) / 1000 || 
                            current_time >= waypoint.interval * ( m ) / 1000 ) ) {
 
-                        sView3.setPosition( new google.maps.LatLng( rM[ i ].position.lat, rM[ i ].position.lng ) );
+                        sView3.setPosition( new google.maps.LatLng( waypoint.position.lat, waypoint.position.lng ) );
 
                         sView3.setPov({
-                          heading: waypoint.pov.heading || computeHeading( rM[ i ], rM[ i + 1 ] ) || 0,
+                          heading: waypoint.pov.heading || computeHeading( waypoint, rM[ i + 1 ] ) || 0,
                           zoom: waypoint.pov.zoom || 0,
                           pitch: waypoint.pov.pitch || 0
                         });