opengeo/gxp — Issue #86: use time_info endpoint to determine time attribute
Author: tschaub
Created: 2011-10-17 03:02:48+00:00
State: open

Currently, the `TimelinePanel` has a [hardcoded attribute](https://github.com/opengeo/gxp/blob/2d4d633f02e6715615a67424ffdc0df1bdeb0df4/src/script/widgets/TimelinePanel.js#L289) for the time value. Instead, this needs to be determined dynamically for each layer.

To determine the time attribute, a custom endpoint has been added to GeoNode. This will likely change. A client should be able to request the time attribute for a layer with syntax like the following:

http://mapstory.demo.opengeo.org/maps/time_info.json?layer=geonode%3Aconflicts

In the `TimelinePanel::onLayerStoreAdd` method, instead of directly calling `addVectorLayer` in the `getWFSProtocol` callback, a new method (e.g. `getTimeAttribute`) could be called that requests the time attribute, stores it, and then calls `addVectorLayer`.