Interactive interface for browsing global, full-resolution satellite imagery
renamed worldview-timeline-components to worldview-components
Benjamin1bd6649de5e9
diff --git a/Gruntfile.js b/Gruntfile.jsindex bfd6b5115..29dad3f7a 100644--- a/Gruntfile.js+++ b/Gruntfile.js@@ -155,7 +155,7 @@ module.exports = function(grunt) {"node_modules/babel-polyfill/dist/polyfill.js","node_modules/react/dist/react.js","node_modules/react-dom/dist/react-dom.js",- "node_modules/worldview-timeline-components/browser/wvtc.js",+ "node_modules/worldview-components/browser/wvc.js","node_modules/lodash/lodash.js","node_modules/bluebird/js/browser/bluebird.js","node_modules/promise-queue/lib/index.js",diff --git a/deploy/wv.js.json b/deploy/wv.js.jsonindex 335baacc5..8d1456645 100644--- a/deploy/wv.js.json+++ b/deploy/wv.js.json@@ -7,7 +7,7 @@"node_modules/lodash/lodash.js","node_modules/bluebird/js/browser/bluebird.js","node_modules/promise-queue/lib/index.js",- "node_modules/worldview-timeline-components/browser/wvtc.js",+ "node_modules/worldview-components/browser/wvc.js","web/js/ol.wv/ol.wv.lookupimagetile.js",diff --git a/package.json b/package.jsonindex 036250281..c61617e24 100644--- a/package.json+++ b/package.json@@ -39,7 +39,7 @@"promise-queue": "^2.2.3","react": "^15.3.1","react-dom": "^15.3.1",- "worldview-timeline-components": "1.2.0"+ "worldview-components": "1.0.1"}}diff --git a/web/index.html b/web/index.htmlindex 31526f5f7..eb8f1fb17 100644--- a/web/index.html+++ b/web/index.html@@ -100,7 +100,7 @@<!-- link.dev --> <script type="text/javascript" src="ext/node_modules/babel-polyfill/dist/polyfill.js"></script><!-- link.dev --> <script type="text/javascript" src="ext/node_modules/react/dist/react.js"></script><!-- link.dev --> <script type="text/javascript" src="ext/node_modules/react-dom/dist/react-dom.js"></script>- <!-- link.dev --> <script type="text/javascript" src="ext/node_modules/worldview-timeline-components/browser/wvtc.js"></script>+ <!-- link.dev --> <script type="text/javascript" src="ext/node_modules/worldview-components/browser/wvc.js"></script><!-- link.dev --> <script type="text/javascript" src="ext/node_modules/lodash/lodash.js"></script><!-- link.dev --> <script type="text/javascript" src="ext/node_modules/bluebird/js/browser/bluebird.js"></script><!-- link.dev --> <script type="text/javascript" src="ext/node_modules/promise-queue/lib/index.js"></script>diff --git a/web/js/animation/wv.anim.gif.js b/web/js/animation/wv.anim.gif.jsindex f3c3ca4d3..c767fff60 100644--- a/web/js/animation/wv.anim.gif.js+++ b/web/js/animation/wv.anim.gif.js@@ -207,7 +207,7 @@ wv.anim.gif = wv.anim.gif || function(models, config, ui) {});return;}- WVTC.GA.event('Animation', 'Click', 'Create GIF');+ WVC.GA.event('Animation', 'Click', 'Create GIF');self.createGIF();};@@ -454,7 +454,7 @@ wv.anim.gif = wv.anim.gif || function(models, config, ui) {.attr("class", "ui-button ui-widget ui-state-default ui-button-text-only").hover(function() {$(this).addClass("ui-state-hover");}, function() {$(this).removeClass("ui-state-hover");}).click(function() {- WVTC.GA.event('Animation', 'Download', 'GIF', downloadSize);+ WVC.GA.event('Animation', 'Download', 'GIF', downloadSize);});var $catalog =diff --git a/web/js/animation/wv.anim.rangeselect.js b/web/js/animation/wv.anim.rangeselect.jsindex c3703d3ba..62d02d22d 100644--- a/web/js/animation/wv.anim.rangeselect.js+++ b/web/js/animation/wv.anim.rangeselect.js@@ -20,7 +20,7 @@ wv.anim.rangeselect = wv.anim.rangeselect || function(models, config, ui) {var model;var timeline = ui.timeline;var widgetOptions = ui.anim.options;- var rangeSelectionFactory = React.createFactory(WVTC.RangeSelector);+ var rangeSelectionFactory = React.createFactory(WVC.RangeSelector);var $mountLocation = $('#wv-rangeselector-case')[0];var reactGlobal = {};var $footer = $('#timeline-footer');diff --git a/web/js/animation/wv.anim.widget.js b/web/js/animation/wv.anim.widget.jsindex 36b124e7b..8c9514cf5 100644--- a/web/js/animation/wv.anim.widget.js+++ b/web/js/animation/wv.anim.widget.js@@ -20,7 +20,7 @@ wv.anim.widget = wv.anim.widget || function(models, config, ui) {var self = {};var timeline = ui.timeline;var model = models.anim;- var widgetFactory = React.createFactory(WVTC.AnimationWidget);+ var widgetFactory = React.createFactory(WVC.AnimationWidget);var $timelineFooter;var $animateButton;var dataModel;@@ -45,7 +45,7 @@ wv.anim.widget = wv.anim.widget || function(models, config, ui) {$timelineFooter = $('#timeline-footer');$animateButton.on('click', function() {- WVTC.GA.event('Animation', 'Click', 'Animation Icon');+ WVC.GA.event('Animation', 'Click', 'Animation Icon');self.toggleAnimationWidget();});if(model.rangeState.state === 'on') { // show animation widget if active in permalinkdiff --git a/web/js/data/wv.data.ui.js b/web/js/data/wv.data.ui.jsindex 89d229d9a..89f3611ce 100644--- a/web/js/data/wv.data.ui.js+++ b/web/js/data/wv.data.ui.js@@ -360,7 +360,7 @@ wv.data.ui = wv.data.ui || function(models, ui, config) {};var showDownloadList = function() {- WVTC.GA.event('Data Download', 'Click', 'Download Button');+ WVC.GA.event('Data Download', 'Click', 'Download Button');if ( selectionListPanel ) {selectionListPanel.setVisible(false);}diff --git a/web/js/image/wv.image.panel.js b/web/js/image/wv.image.panel.jsindex 2b8cb5471..5fc96f6b6 100644--- a/web/js/image/wv.image.panel.js+++ b/web/js/image/wv.image.panel.js@@ -346,7 +346,7 @@ wv.image.panel = wv.image.panel || function(models, ui, config) {$("#wv-image-download-button").unbind('click').click(function() {- WVTC.GA.event('Image Download', 'Click', 'Download');+ WVC.GA.event('Image Download', 'Click', 'Download');wv.util.metrics('lc='+encodeURIComponent(dlURL+"&worldfile="+imgWorldfile+"&format="+imgFormat+"&width="+imgWidth+"&height="+imgHeight) );window.open(dlURL+"&worldfile="+imgWorldfile+"&format="+imgFormat+"&width="+imgWidth+"&height="+imgHeight,"_blank");});diff --git a/web/js/link/wv.link.ui.js b/web/js/link/wv.link.ui.jsindex 6543f3c20..adf75d676 100644--- a/web/js/link/wv.link.ui.js+++ b/web/js/link/wv.link.ui.js@@ -38,7 +38,7 @@ wv.link.ui = wv.link.ui || function(models, config) {text: false}).click(function() {var checked = $("#wv-link-button-check").prop("checked");- WVTC.GA.event('Link', 'Click', 'Share link Button');+ WVC.GA.event('Link', 'Click', 'Share link Button');if ( checked ) {self.show();} else {@@ -112,7 +112,7 @@ wv.link.ui = wv.link.ui || function(models, config) {var checked = $("#wv-link-shorten-check").prop("checked");if ( checked ) {var promise = models.link.shorten();- WVTC.GA.event('Link', 'Check', 'Shorten');+ WVC.GA.event('Link', 'Check', 'Shorten');$("#permalink_content").val("Please wait...");promise.done(function(result) {if ( result.status_code === 200 ) {@@ -125,7 +125,7 @@ wv.link.ui = wv.link.ui || function(models, config) {});} else {$('#permalink_content').val(models.link.get());- WVTC.GA.event('Link', 'Check', 'Lengthen');+ WVC.GA.event('Link', 'Check', 'Lengthen');}$('#permalink_content').focus();$('#permalink_content').select();diff --git a/web/js/naturalEvents/wv.naturalEvents.ui.js b/web/js/naturalEvents/wv.naturalEvents.ui.jsindex f94d01d35..4b13143ed 100644--- a/web/js/naturalEvents/wv.naturalEvents.ui.js+++ b/web/js/naturalEvents/wv.naturalEvents.ui.js@@ -169,7 +169,7 @@ wv.naturalEvents.ui = wv.naturalEvents.ui || function(models, ui, config) {});$(self.selector + "content li").click(function() {var dataIndex = $(this).attr("data-index");- WVTC.GA.event('Natural Events', 'Click', 'Event');+ WVC.GA.event('Natural Events', 'Click', 'Event');showEvent(dataIndex);$(self.selector + "content li").removeClass('item-selected');$(this).addClass('item-selected');@@ -181,7 +181,7 @@ wv.naturalEvents.ui = wv.naturalEvents.ui || function(models, ui, config) {$(self.selector + "content a.date").click(function(event) {var dataIndex = $(this).attr("data-index");showEvent(dataIndex, $(this).attr("data-date-index"));- WVTC.GA.event('Natural Events', 'Click', 'Event');+ WVC.GA.event('Natural Events', 'Click', 'Event');event.stopPropagation();});resize();diff --git a/web/js/wv.main.js b/web/js/wv.main.jsindex adc0bbd1a..11a1ffa4b 100644--- a/web/js/wv.main.js+++ b/web/js/wv.main.js@@ -131,7 +131,7 @@ $(function() {.register(models.map);models.link.load(state);if(config.features.googleAnalytics) {- WVTC.GA.init(config.features.googleAnalytics.id); // Insert google tracking+ WVC.GA.init(config.features.googleAnalytics.id); // Insert google tracking}// HACK: Map needs to be created before the data download modelui.map = wv.map.ui(models, config, wv.map.rotate, wv.map.runningdata);diff --git a/web/js/wv.tour.js b/web/js/wv.tour.jsindex 58703502f..917cb2b2a 100644--- a/web/js/wv.tour.js+++ b/web/js/wv.tour.js@@ -155,7 +155,7 @@ wv.tour = wv.tour || function(models, ui, config) {var onStop = function(index, tip, button) {//console.log(index, tip, button);setTourState();- WVTC.GA.event('Tour', 'Click', 'Post Tour View', index + 1);+ WVC.GA.event('Tour', 'Click', 'Post Tour View', index + 1);if(index == 5 && button !== "previous") {endTour();}@@ -168,7 +168,7 @@ wv.tour = wv.tour || function(models, ui, config) {e.stopPropagation();$(".ui-dialog-content").dialog("close");initTourState();- WVTC.GA.event('Tour', 'Click', 'Take Tour');+ WVC.GA.event('Tour', 'Click', 'Take Tour');$('#joyRideTipContent').joyride({adjustForPhone:false,bordered:true,