On Dec 7, 10:16 pm, xelawho <[email protected]> wrote:
>
> Now it just follows the last line in the array, regardless of which
> button is clicked. I'm guessing that I need to put a loop in there
> somewhere, but I've tried what look to me like the obvious places
> without success.
>
> Anyway. Like I say, if you're interested, thanks in advance. Here's my
> effort to date:http://xelawho.com/map/moving2.htm

You have three lines: they should each be in an array, say polys =>
polys[0], polys[1] and polys[2].

When you execute function startAnimation, currently there is no way
that that function knows which line should be animated. Pass the line
number to that function, and then refer to the correct line within it.

So:
* Read the XML and set up your three lines
* When a button is pressed, pass the right line number through to the
code
* In startAnimation, use the right line.

-- 
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