Skip to content

metno/openlayers-timeslider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openlayers-timeslider

A plugin for OpenLayers used for displaying a timeslider for layers with a time dimension.

If multiple layers are shown the plugin merges that the available times for a the layers. The plugin does not contain any logic for trying to "fill the gaps" if some times are not available for all layers.

The plugin depends on the Slider component in jQuery UI version 1.8.x and will not work with out it.

Usage

To use, just include the TimeSlider.js file and add it as part of the map controllers like this:

var timeSliderDiv = document.getElementById('timesliderId');
var map = new OpenLayers.Map({ div: "map",
                               controls : [ new OpenLayers.Control.TimeSlider({ div : timeSliderDiv } ),],
                            });

Options

  • startTime: Set to the time you want the time slider to start on if it is not the first element in the time dimension.
  • displayLikeScrollbar: Set to true if you want the slider to display like a scrollbar. I.e. the slider handle should not overflow the bounds of the slider.

About

A plugin for OpenLayers used for displaying a timeslider

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •