<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks Michael - much appreciated. Does anyone have a link to the LineAnimator example?<div><br><div><div>On 6 Aug 2011, at 15:15, Michael wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div text="#000000" bgcolor="#FFFFFF">
I believe that Andreas has updated a function that would help in
this regard called "tween", I think<br>
<br>
Unaware of that, I built a rather complex animation tool. You can
see a temporary example at
<a class="moz-txt-link-freetext" href="http://track.pacificcup.org/track.php?race=transpac">http://track.pacificcup.org/track.php?race=transpac</a><br>
<br>
Select a boat from the left of the screen and then use the vcr
controls at the top to animate.<br>
<br>
It works by maintaining an array of points that parallels the points
in the linestring. At selected intervals, I add a point from the
array to the linestring. Then I clear the linestring at the end.<br>
<br>
To do fancier stuff, like go in reverse, I added a time attribute to
each point, so I can count backwards through the vertices (points)
of the linestring till I get to one that is older than the new
cutoff time, deleting the newer ones.<br>
<br>
The code is, well, complex, because the page is doing a bunch of
other things. I keep meaning to extract an example, and perhaps I
should! Meantime, it IS possible.<br>
<br>
Michael<br>
<br>
On 8/6/2011 4:12 AM, Luke Mackenzie wrote:
<blockquote cite="mid:D4B4D012-8C14-441D-89BA-5E3D424B0947@lukem.co.uk" type="cite">Hi,
<div><br>
</div>
<div>This page contains a broken ink to an animated polyine
example (Line Animator):</div>
<div><br>
</div>
<div><a moz-do-not-send="true" href="http://trac.osgeo.org/openlayers/wiki/UserRecipes#Other">http://trac.osgeo.org/openlayers/wiki/UserRecipes#Other</a></div>
<div><br>
</div>
<div>Does anyone have a copy of this example? I would like to know
if ti would be possible to create an effect like this using
openlayers:</div>
<div><br>
</div>
<div><a moz-do-not-send="true" href="http://econym.org.uk/gmap/example_cartrip2.htm">http://econym.org.uk/gmap/example_cartrip2.htm</a> (click
start).</div>
<div><br>
</div>
<div>I actually don't need the map panning or to follow driving
directions as my use case requires a generic world map with the
polylines linking major cities. A closer example would be
animated flight paths.</div>
<div><br>
</div>
<div>I would be extremely grateful if anyone could provide the
missing example or offer any advice on how to achieve this. I've
been playing with the cloudmade leaflet maps here:</div>
<div><br>
</div>
<div><a moz-do-not-send="true" href="http://jsfiddle.net/codecowboy/XkShV/22/">http://jsfiddle.net/codecowboy/XkShV/22/</a> (
I want to animate the red line - I will need to dynamically add
lines to the map based on lat/longs and distance covered by
users)</div>
<div><br>
</div>
<div>Many thanks,</div>
<div><br>
</div>
<div>Luke Mackenzie</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a>
</pre>
</blockquote>
</div>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/openlayers-users<br></blockquote></div><br></div></body></html>