Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Removed static layers from timeline

Taylor Gunnoe51622010e0f3
diff --git a/web/js/date/wv.date.timeline.js b/web/js/date/wv.date.timeline.js
index 9f6ca36a2..5941b3e54 100644
--- a/web/js/date/wv.date.timeline.js
+++ b/web/js/date/wv.date.timeline.js
@@ -93,17 +93,17 @@ wv.date.timeline = wv.date.timeline || function(models, config, ui) {
activeLayersTitles = [];
activeLayers = models.layers.get();
- /*
+
activeLayersDynamic = activeLayers.filter(function(al){
return al.startDate;
});
- activeLayersInvisible = activeLayers.filter(function(al){
+ /*activeLayersInvisible = activeLayers.filter(function(al){
return al.visible === false;
- });
- */
- layerCount = activeLayers.length;
+ });*/
+
+ layerCount = activeLayersDynamic.length;
- $(activeLayers).each(function(i){
+ $(activeLayersDynamic).each(function(i){
activeLayersTitles[i] = this.id;
});
@@ -116,7 +116,7 @@ wv.date.timeline = wv.date.timeline || function(models, config, ui) {
.orient("left")
.ticks(layerCount);
- $(activeLayers).each(function(al){
+ $(activeLayersDynamic).each(function(al){
var layerStart,layerEnd,layerXY;
var layerVisible = true;
var staticLayer = true;