IS-AgroSmart / AgroSmart-Web

1 stars 1 forks source link

Indices do not change with date on multi-flight projects #22

Closed jreyesr closed 4 years ago

jreyesr commented 4 years ago

panel.js does not change the Date layer of indices. They are actually saved as time-series in Geoserver, all that is required is to extend the change listener of the Slider to also change the time on those layers: https://github.com/IS-AgroSmart/AgroSmart-Web/blob/999eac5708987b33f4f3a663bfe3f3f5fba49709/templates/geoext/examples/tree/panel.js#L184-L187 Also remember to initialize all layers to the latest date! (updateTime to TIMES.length - 1) Iterate over the indices array to get those layers.

jreyesr commented 4 years ago

An example. Indices show the last date by default, even if the main orthomosaic is on an earlier flight. Note that the slider is NOT on the last date. If it were (or if the project contained a single flight), it would look normal.

image