On 8 December 2010 15:42, xelawho <[email protected]> wrote:
>
> without wanting to sound too confident, I think I've got parts 1 & 2
> sorted. Just not sure on how to go about part 3...

Your startAnimation function reads through a line called "poly" (if
I've understood it right).

Change that to polys[lineNumber] so that it uses one of the lines you
have in the array, assuming you called it "polys" as suggested. It may
be referenced in several places.

Change the function definition to include that lineNumber --
  function startAnimation(lineNumber) {

Change where that is called to include the number of the line you want
to follow, like startAnimation(0) or startAnimation(1). You'll
probably use a variable there --
  var lineToFollow = 0; // assigned however you do this
  startAnimation(lineToFollow);

Then when you call the animation on line 2 (say), 2 gets passed into
the function which then follows polys[2].

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to