Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-1091: Timeline zoom level defaults to days

Mike McGann90f99e1e6fa9
diff --git a/web/js/date/wv.date.timeline.js b/web/js/date/wv.date.timeline.js
index 0d88a7ae6..1b7c0c9e3 100644
--- a/web/js/date/wv.date.timeline.js
+++ b/web/js/date/wv.date.timeline.js
@@ -42,7 +42,7 @@ wv.date.timeline = wv.date.timeline || function(models, config, ui) {
};
$(layersModel.get({visible:true})).each(function(){
console.log(this);
-
+
});
/* Click or mousedown? */
var cancelClick;
@@ -1309,10 +1309,10 @@ wv.date.timeline = wv.date.timeline || function(models, config, ui) {
.attr("class", "data-bar")
.attr("d", selection);
- setZoom('months');
+ setZoom('days');
//initial setup of zoom buttons FIXME: make this much better
- setZoomBtns('months');
+ setZoomBtns('days');
//Add guitar pick
guitarPick = d3.select("#timeline-footer svg")
@@ -1605,7 +1605,7 @@ wv.date.timeline = wv.date.timeline || function(models, config, ui) {
var kc = event.keyCode || event.which;
if((kc === 13) || (kc === 9)){
event.preventDefault();
-
+
if($(this).parent().hasClass('selected')){
var selected = $(this);
var YMDInterval = selected.attr('id');
@@ -1624,7 +1624,7 @@ wv.date.timeline = wv.date.timeline || function(models, config, ui) {
var validStr = false;
var newIntInput;
newInput = newInput.toUpperCase();
-
+
for (var i=0;i<monthNames.length;i++){
if (newInput === monthNames[i]){
validStr = true;
@@ -1658,12 +1658,12 @@ wv.date.timeline = wv.date.timeline || function(models, config, ui) {
//updateTime();
selected.select();
}
-
+
}
-
-
+
+
}
-
+
});
$("#focus-guard-1").on('focus',function(){
$("#day-input-group").focus().select();