This class adds functionality to navigate in the time dimension (useful for some WMS-layers)
See http://www.atavus.se/TimeNavigation/timenavigation.html for a live example.
The user specifies a "time-group" in the layer properties.
var temprature_wms = new OpenLayers.Layer.WMS.Untiled( "Temprature",
"http://openmetoc.met.no/metoc/metocwms",
{layers: "ECMWF-IFS_2:TMP",
transparent: "true", format: "image/png" },
{timegroup: 'ECMWF'});
This time-group should be the same for all layers that is to be controlled by the navigation control.
Following code adds the time navigation control:
map.addControl( new OpenLayers.Control.TimeNavigation(
"" ,
{timegroup: 'ECMWF',
timearray: ["2007-10-23T00:00:00" , "2007-10-23T06:00:00" , "2007-10-23T12:00:00" , "2007-10-23T18:00:00"],
timeformat_callback_func: 'dateconv'}));
timegroup, this is the name of the timegroup which the array with times should apply to.
timeformat_callback_func, this is optional. It's used to give the user a way to format the dates that are displayed on the map.