Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix for a duplicate sublabel appearing on the offscreen tick

Taylor Gunnoef29ab74ef3f2
diff --git a/web/js/date/wv.date.timeline.js b/web/js/date/wv.date.timeline.js
index de6b06716..9760efe0f 100644
--- a/web/js/date/wv.date.timeline.js
+++ b/web/js/date/wv.date.timeline.js
@@ -234,7 +234,7 @@ wv.date.timeline = wv.date.timeline || function(models, config, ui) {
break;
case 2:
fBoundData = new Date(Date.UTC(fNormData.getUTCFullYear(),fNormData.getUTCMonth(),1));
- fBoundTxt = fBoundData.getUTCMonth();
+ fBoundTxt = monthNames[fBoundData.getUTCMonth()];
break;
case 3:
fBoundData = new Date(Date.UTC(fNormData.getUTCFullYear(),fNormData.getUTCMonth(),fNormData.getUTCDate()-fNormData.getUTCDay())); //FIXME
@@ -482,12 +482,6 @@ wv.date.timeline = wv.date.timeline || function(models, config, ui) {
.attr("height",height-1)
.attr("y",-height)
.attr("width",normalTickWidth);
-
- if(subLabel){
- boundaryTick.select('text').append("tspan")
- .text(" " + subLabel)
- .attr("class","sub-label");
- }
}
else{
boundaryTick.select('rect.boundarytick-background')