I may have over played this demo on the forums already, but I think
you could still benefit from it... possibly.  I'm not sure what kind
of animation you're looking for on the polyline, but I would imagine
something like look-up directions from here to there, then show the
path drawn incrementally like Indiana Jones style.  What I think you'd
need to do to have that kind of control is have it calculate the
directions then use the array of points along the directions to draw
them one at a time with some sort of delay between the drawing of each
segment.  I did some line drawing a while back working on a project
using google maps and posted some of the things I worked on here, a
lot of the code posted there is from other posters but I tried to give
credit where credit was due, anyhow in case I missed them Kevin Luck
(for the clusterer) and Jonathan Wagner (for the idea and a lot of
code on getting huge amounts of markers on the map without terrible
drag) were the two people who's code and forum posts I got most of
this from (outside of what I coded, ah and of course Pamela Fox and
Thor and I'm sure a lot of other people I can't remember right now).

http://www.shaunhusain.com/GoogleMapManyMarker/

So if you check it out you're not gonna be too enthused as you won't
see anything animating on that example, however using the
ManyMarkerHolder.as or ManyLineHolder.as (right click the map and hit
view source) as examples you can see how you can draw your own
overlays using the fromLatLngToPaneCoords method to translate the
points returned in the results from running a directions query to
places on screen that you want to draw.  Also I used some animated
versions of the markers instead of bitmapData at some point, using the
single overlay method still but using uicomponents so I could benefit
from the built in flex lifecycle and it worked pretty well, was using
an image with an animating mask moving around it and was still able to
navigate around the map just fine with quite a few of em animating
(think I was testing with about 20, was just curious if it would work
at all).
http://www.iam.sg/flash/docs/com/google/maps/interfaces/IPane.html
http://www.iam.sg/flash/docs/

If you need more help or I'm going in the wrong direction with this
let me know, I'd be interested in trying this out just to see it
working anyhow.
Good Luck,
Shaun

On Jun 22, 3:32 pm, Raymond  Camden <[email protected]> wrote:
> I see a thread back in February (http://groups.google.com/group/google-
> maps-api-for-flash/browse_thread/thread/5215e8b877a38d4c/
> ebd0787280e5ac35?lnk=gst&q=animation#ebd0787280e5ac35) asking about
> animation and polylines. I didn't see any response to that so I
> thought I'd raise it again. Anyone got a working demo of an animated
> polyline?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" 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-for-flash?hl=en.

Reply via email to