[OpenLayers-Users] Has anyone tried animation / or how to?

Wouter Schaubroeck wouter.schaubroeck at gmail.com
Mon Jun 23 10:05:35 EDT 2008


I've made something similar, but without openlayers, so: no overlays,
and no baselayer either...
but it does the trick, this is how i've done it:

i grab the current extent, and the parameters of the current layer
(luckilly i have only one...), and i build my own wms - getmaprequest.
Then i've created an imagepreloader, that (surprise surprise)
preloades all my images, and stores them in the memory of the browser.
When they're all loaded, i loop over them (setinterval), and that's
it, i have my animation!!

grtz,

Wouter Schaubroeck

Geo Solutions

www.geosolutions.be

On Wed, Jun 18, 2008 at 2:53 PM, alinux <alaincourivaud at gmail.com> wrote:
>
>
> Barend Kobben <kobben at ...> writes:
>
>>
>> HI,
>>
>> We actually have  an MSc student just started on seeing how to do this using
>> WMS-T and SVG. SVG enables an integrated animation/interface, using SMIL
>> animation and javascript interactivity. We hope to present some results at
>> the upcoming SVGopen conference in Nurnberg (Germany, august 26-29)). See
>> the abstract "SVG and Geo Web Services for visualization of time series data
>> of flood risk" on the Proceedings page at http://svgopen.org/2008/
>>
>
> Hello
> sorry for my anglish ...
>
> I tried to do an animation and i used it :
>
> .
> .
> .
>
> var loaded = "FALSE";
> var madate = new Date("June 18, 2008 00:00:00");
> .
> .
> .
>
> radar = new OpenLayers.Layer.WMS( "animation radar",
> "http://monServeur:8080/wms", {layers:
> "radar:"+madate.dateFormat('YmdHis')+":M:FRANCE_5MN", transparent: "TRUE",
> format: "image/png"} , { singleTile: true, transitionEffect: 'resize'});
>
> syn_radar_wms.events.register('loadend', radar ,function(e){
>                if (loaded=="TRUE"){
>                        play_minute();
>                }
>
>                });
>
> .
> .
> .
>
> function play_minute(){
>                        madate.setMinutes(madate.getMinutes()+5);
>                        madate_formate = madate.dateFormat('YmdHis');
>                        string = "radar:"+madate_formate+":M:FRANCE_5MN";
>                        radar.mergeNewParams({'layers':string});
>                }
>
> .
> .
> .
>
> <div onclick="loaded='TRUE'; play_minute()">Play (animation Minute + 5)</div>
>
>
> And that's good
>
> What do you think about it ?
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



-- 
Groucho Marx  - "A child of five would understand this. Send someone
to fetch a child of five."



More information about the Users mailing list