Time Plugin - geosolutions-it/MapStore GitHub Wiki
The Time plugin makes it possible to manage time animation (Google Earth like) inside MapStore. This plugin can work only with the Time support for WMS GetCapabilities (i.e. inside GeoServer the Time dimension must be configured).
The Time plugin's dependencies are added by default to the MapStore build.
See the buildjs.cfg about that, for OpenLayers dependencies we have:
OpenLayers/BaseTypes/Date.js
OpenLayers/Control.js
OpenLayers/Control/TimeManager.js (in openlayers-ext)
OpenLayers/TimeAgent.js (in openlayers-ext)
OpenLayers/TimeAgent/WMS.js (in openlayers-ext)
For GXP dependencies we need:
widgets/form/PlaybackModeComboBox.js
widgets/PlaybackToolbar.js
widgets/PlaybackOptionsPanel.js
widgets/slider/TimeSlider.js
plugins/Playback.js
Below a possible configuration of the Time plugin to use in MapStore:
{
"ptype":"gxp_playback",
"playbackMode": "range",
"labelButtons": false,
"timeFormat": "l, F d, Y g:i:s A",
"outputTarget": "map",
"outputConfig": {
"controlConfig":{
"step": 1,
"units": "Hours",
"range": ["2012-09-02T13:55:15.000Z", "2012-09-23T07:02:12.000Z"],
"frameRate": 1
}
}
}
ptype
: ptype of the pluginplaybackMode
: String ‘ranged’labelButtons
: Boolean, if true force the plugin to provide labels for toolbar buttonstimeFormat
: String, the format to use for the Date representation.outputTarget
: Object or String Where to place the tool’s output (widgets.PlaybackPanel) Use ‘map’ as the default to display a transparent floating panel over the map.outputConfig
: Object Optional configuration for the output container. This may be useful to override the xtype (e.g. “window” instead of “gx_popup”), or to provide layout configurations when rendering to an outputTarget.