Google map animation

Avg Bid (USD)
Project Budget (USD)
$100 - $150

Project Description:
This is a very simple project. The aim is to identify a developer for further development of a javascript/googlemaps based application.

Project requirement:
Using the google map API v3, animate the "panTo" function.

I have a web page that renders a map based on a given set of coordinates. After the map is displayed, I would like the map to slowly "panTo" a new set of coordinates by stepping through an array of all the coordinates between "current position" and "new position" ... the following example code illustrates what I want:

function initialize() {
// This function is linked to the page body onload=initialize

// initial coordinates to generate map
latlng = new google.maps.LatLng(lat,lng);
var options = {
zoom: 15,
center: latlng,
disableDefaultUI: true,
mapTypeId: google.maps.MapTypeId.ROADMAP
// Initialize the map
map = new google.maps.Map(document.getElementById('map'), options);

// Using these new coordinates, generate a list of coordinates between the current position and the new position
// The genPoints function sits in a second javascript library and works for this example
newLat = '51.3216';newLng = '-0.451139';
pointarray = genPoints(map,newLat,newLng);

// Once the initial map is displayed and after two seconds, loop through "pointarray" and use panTo for each new coordinate
window.setTimeout(function() {

function animate(pointarray) {
for( point in pointarray ) {
newLat = pointarray[point].split(",")[0];
newLng = pointarray[point].split(",")[1];
window.setTimeout(function() {
map.panTo(new google.maps.LatLng(newLat,newLng));

The above code fails because javascript doesn't appear to update the map during the "for loop" ... rather it updates at the end and pans directly to the last coordinate.

Future projects will require:
1. Highlight road
2. Animate icon along road (panning map so that icon remains at the center at all times...hence this project)
3. Discussions around similar functionality for the google earth browser plugin.

Skills required:
About the employer:
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.