From: David Seifried Date: Fri, 26 Aug 2011 16:27:13 +0000 (-0400) Subject: Fixed a left over variable that should have been switched X-Git-Tag: v0.8^2~5^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=4875d38f1a9f1ab756a93fb2208b03eb23f97a15;p=popcorn-js.git Fixed a left over variable that should have been switched --- 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 });