Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Enable date wheel on mobile

Jo Sprague570236159620
diff --git a/web/js/date/wheels.js b/web/js/date/wheels.js
index 619dd68e3..362d8d364 100644
--- a/web/js/date/wheels.js
+++ b/web/js/date/wheels.js
@@ -2,7 +2,7 @@ import $ from 'jquery';
import 'mobiscroll';
import util from '../util/util';
-export function dateWheels(models, config) {
+var dateWheels = function(models, config) {
var id = 'timewheels';
var $container = $('#' + id);
var MSEC_TO_MIN = 1000 * 60;
@@ -89,3 +89,5 @@ export function dateWheels(models, config) {
init();
return self;
};
+
+export default dateWheels;
diff --git a/web/js/main.js b/web/js/main.js
index 14b8653d4..70cdfacab 100644
--- a/web/js/main.js
+++ b/web/js/main.js
@@ -9,7 +9,7 @@ import util from './util/util'; // Maybe this is the time to remove the util fil
import {parse as dateParser} from './date/date'; // export default function parse!!!
import {dateModel} from './date/model';
import {dateLabel} from './date/label';
-import {dateWheels} from './date/wheels';
+import dateWheels from './date/wheels';
// Timeline
import {timeline} from './date/timeline';
import {timelineData} from './date/timeline-data';
@@ -257,7 +257,7 @@ window.onload = () => {
if (!util.browser.small) { // If mobile device, do not build timeline
timelineInit();
}
- //ui.dateWheels = dateWheels(models, config);
+ ui.dateWheels = dateWheels(models, config);
}
ui.rubberband = imageRubberband(models, ui, config);