[OpenLayers-Users] polyline example
Luke Mackenzie
luke at lukem.co.uk
Sun Aug 7 01:27:34 EDT 2011
Thanks Michael - much appreciated. Does anyone have a link to the LineAnimator example?
On 6 Aug 2011, at 15:15, Michael wrote:
> I believe that Andreas has updated a function that would help in this regard called "tween", I think
>
> Unaware of that, I built a rather complex animation tool. You can see a temporary example at http://track.pacificcup.org/track.php?race=transpac
>
> Select a boat from the left of the screen and then use the vcr controls at the top to animate.
>
> 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.
>
> 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.
>
> 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.
>
> Michael
>
> On 8/6/2011 4:12 AM, Luke Mackenzie wrote:
>>
>> Hi,
>>
>> This page contains a broken ink to an animated polyine example (Line Animator):
>>
>> http://trac.osgeo.org/openlayers/wiki/UserRecipes#Other
>>
>> 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:
>>
>> http://econym.org.uk/gmap/example_cartrip2.htm (click start).
>>
>> 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.
>>
>> 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:
>>
>> http://jsfiddle.net/codecowboy/XkShV/22/ ( 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)
>>
>> Many thanks,
>>
>> Luke Mackenzie
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110807/25bf404c/attachment.html
More information about the Users
mailing list