From 4875d38f1a9f1ab756a93fb2208b03eb23f97a15 Mon Sep 17 00:00:00 2001 From: David Seifried Date: Fri, 26 Aug 2011 12:27:13 -0400 Subject: [PATCH] Fixed a left over variable that should have been switched --- plugins/googlemap/popcorn.googlemap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/googlemap/popcorn.googlemap.js b/plugins/googlemap/popcorn.googlemap.js index e921b0f..c478195 100755 --- a/plugins/googlemap/popcorn.googlemap.js +++ b/plugins/googlemap/popcorn.googlemap.js @@ -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 }); -- 2.43.0