Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Enable tour features - Enable tour config feature in main.js - Add jquery-ui dialog - Change name of Google analytics import name to be consistent with codebase

ZachTRicec30d6744010d
diff --git a/web/js/main.js b/web/js/main.js
index f45b19f82..292807ced 100644
--- a/web/js/main.js
+++ b/web/js/main.js
@@ -271,7 +271,7 @@ window.onload = () => {
// ui.naturalEvents = naturalEventsUI(models, ui, config, naturalEventsRequest(models, ui, config));
}
ui.link = linkUi(models, config);
- // ui.tour = Tour(models, ui, config);
+ ui.tour = tour(models, ui, config);
// ui.info = uiInfo(ui, config);
if (config.features.alert) {
// ui.alert = notificationsUi(ui, config);
diff --git a/web/js/tour.js b/web/js/tour.js
index 87621fb60..ba34e780e 100644
--- a/web/js/tour.js
+++ b/web/js/tour.js
@@ -1,8 +1,9 @@
import $ from 'jquery';
+import 'jquery-ui/dialog';
import 'jquery.joyride';
import util from './util/util';
import wvui from './ui/ui';
-import {GA} from 'worldview-components';
+import {GA as googleAnalytics} from 'worldview-components';
import feedbackModal from './feedback';
export default function (models, ui, config) {
@@ -169,7 +170,7 @@ export default function (models, ui, config) {
var onStop = function (index, tip, button) {
// console.log(index, tip, button);
setTourState();
- GA.event('Tour', 'Click', 'Post Tour View', index + 1);
+ googleAnalytics.event('Tour', 'Click', 'Post Tour View', index + 1);
if (index === 5 && button !== 'previous') {
endTour();
}
@@ -183,7 +184,7 @@ export default function (models, ui, config) {
$('.ui-dialog-content')
.dialog('close');
initTourState();
- GA.event('Tour', 'Click', 'Take Tour');
+ googleAnalytics.event('Tour', 'Click', 'Take Tour');
$('#joyRideTipContent')
.joyride({
adjustForPhone: false,