Interactive interface for browsing global, full-resolution satellite imagery
Remove jQuery joyride dependency, joyride css/js, and old tour HTML
ZachTRice0bee561a5543
diff --git a/e2e/features/tour/tour-test.js b/e2e/features/tour/tour-test.jsindex 1b5b7843e..de330a438 100644--- a/e2e/features/tour/tour-test.js+++ b/e2e/features/tour/tour-test.js@@ -1,18 +1,18 @@-const normalizeViewport = require('../../reuseables/normalize-viewport.js').normalizeViewport;-const TIME_LIMIT = 10000;+// const normalizeViewport = require('../../reuseables/normalize-viewport.js').normalizeViewport;+// const TIME_LIMIT = 10000;module.exports = {- before: function(client) {- normalizeViewport(client, 1000, 850);- client.url(client.globals.url);- },- 'Verify that the tour is present when the page is loaded': function(client) {- client.waitForElementVisible('#skipTour', TIME_LIMIT, function() {- client.click('#takeTour');- client.waitForElementVisible('.joyride-next-tip', 1000);- });- },- after: function(client) {- client.end();- }+ // before: function(client) {+ // normalizeViewport(client, 1000, 850);+ // client.url(client.globals.url);+ // },+ // 'Verify that the tour is present when the page is loaded': function(client) {+ // client.waitForElementVisible('#skipTour', TIME_LIMIT, function() {+ // client.click('#takeTour');+ // client.waitForElementVisible('.joyride-next-tip', 1000);+ // });+ // },+ // after: function(client) {+ // client.end();+ // }};diff --git a/package.json b/package.jsonindex ad6cc1529..f8bcc1d07 100644--- a/package.json+++ b/package.json@@ -164,7 +164,6 @@"jquery-jcrop": "^0.9.13","jquery-ui-bundle": "1.12.1-migrate","jquery-ui-touch-punch": "0.2.3",- "jquery.joyride": "git+https://[email protected]/nasa-gibs/joyride.git","jscrollpane": "^2.0.22","lodash": "^4.15.0","ol": "^5.2.0",diff --git a/web/js/app.js b/web/js/app.jsindex 21971f127..79b3bb34f 100644--- a/web/js/app.js+++ b/web/js/app.js@@ -117,7 +117,6 @@ import '../../node_modules/icheck/skins/line/red.css';import '../../node_modules/jscrollpane/style/jquery.jscrollpane.css';import '../../node_modules/perfect-scrollbar/dist/css/perfect-scrollbar.css';import '../ext/mobiscroll-2.6.0/mobiscroll.css';-import '../../node_modules/jquery.joyride/jquery.joyride.css';import '../../node_modules/jquery-jcrop/css/jquery.Jcrop.css';import '../../node_modules/ol/ol.css';import '../../node_modules/rc-slider/dist/rc-slider.css';diff --git a/web/js/components/tour/modal-tour-in-progress.js b/web/js/components/tour/modal-tour-in-progress.jsindex 73aaf6339..94ca26387 100644--- a/web/js/components/tour/modal-tour-in-progress.js+++ b/web/js/components/tour/modal-tour-in-progress.js@@ -8,7 +8,7 @@ import lodashFind from 'lodash/find';import lodashEach from 'lodash/each';import lodashIsUndefined from 'lodash/isUndefined';import lodashEachRight from 'lodash/eachRight';-import lodashWithout from 'lodash/without';+// import lodashWithout from 'lodash/without';// import lodashMap from 'lodash/map';// import { getCenter } from 'ol/extent';@@ -136,7 +136,6 @@ class ModalInProgress extends React.Component {selectLink(currentState, stepTransition, prevState) {var errors = [];- var zooms = ['yearly', 'monthly', 'daily', '10-Minute'];var config = this.props.config;var models = this.props.models;var ui = this.props.ui;diff --git a/web/pages/tour.html b/web/pages/tour.htmldeleted file mode 100644index 00c6612c5..000000000--- a/web/pages/tour.html+++ /dev/null@@ -1,354 +0,0 @@-<!-- INTRODUCTION -->--<div id="wv-tour-intro" class="splash wv-tour-intro">- <center>- <p class="splashwelcome">- This application allows you to interactively browse global satellite imagery within hours of it being acquired. Use the features- described below to find interesting imagery, save and share what you find, and download the underlying data.- </p>- <br>- <table id="splashTable" class="splash">- <tr>- <td>- <img src="images/tour/layer-picker-1.1.png" alt="Layer Picker" width="135" height="110" class="splash" />- </td>- <td>- <img src="images/tour/timeline-0.7.png" alt="Timeline" width="150" height="78" class="splash" />- </td>- <td>- <img src="images/tour/toolbar-1.4.7.png" alt="Toolbar" width="124" height="50" class="splash" />- </td>- <td>- <img src="images/tour/map-0.7.png" alt="Map" width="100" height="75" class="splash" />- </td>- </tr>- <tr class="splash-info">- <td class="splash-info">- <p class="splash">Use the- <span class="highlight">Layer Picker</span>- on the left to choose the type of imagery to display on the map and download the underlying data. Select the Events tab to- view current natural events around the world.</p>- </td>- <td class="splash-info">- <p class="splash">Use the- <span class="highlight">Timeline</span>- on the bottom to choose the date of the observations.</p>- </td>- <td class="splash-info">- <p class="splash">Use the- <span class="highlight">Tool Bar</span>- at the top to see other tools for changing and saving the view.</p>- </td>- <td class="splash-info">- <p class="splash">Use the- <span class="highlight">Map</span>- itself to pan or zoom in on an area.</p>- </td>- </tr>- <tr>- <td rowspan="2" colspan="4">- <p style="text-align:center;">- <button id="takeTour" type="button" class="takeTour">Take Tour</button>- <button id="skipTour" type="button" class="skipTour">Skip Tour</button>- </p>- </td>- </tr>- <tr></tr>- <tr id="wv-tour-skip">- <td colspan="2">- <p id="dontShowP" class="splash">- <input id="dontShowAgain" type="checkbox"> Do not show again (Access from- <i class="fa fa-info-circle fa-fw"></i>- menu)- </p>- </td>- </tr>- </table>- </center>-</div>--<!-- TOUR PANELS -->-<ol id="joyRideTipContent" class="tour">-- <!-- Timeline -->- <li id="wv-tour-timeline" style="display: none" class="bordered wide" data-id="timeline-footer" data-button="Next" data-options="tipLocation:top;tipAnimation:fade;nubPosition:bottom;">- <div class="tour">- <h3>Timeline</h3>- <p>- Use the timeline below to explore satellite imagery that is available in the archive.</p>- <table>- <tr>- <td class="wv-tour-table-icon">- <svg width="60" height="60">- <defs>- <clippath id="guitarpick-boundary">- <rect width="814" height="65" x="-30"></rect>- </clippath>- </defs>- <g id="guitarpick" style="clip-path:url(#guitarpick-boundary);">- <path d="M 7.3151,0.7426 C 3.5507,0.7426 0.5,3.7926 0.5,7.5553 l 0,21.2724 14.6038,15.7112 14.6039,15.7111 14.6038,-15.7111 14.6037,-15.7112 0,-21.2724 c 0,-3.7627 -3.051,-6.8127 -6.8151,-6.8127 l -44.785,0 z"></path>- <rect width="4" height="20" x="21" y="11"></rect>- <rect width="4" height="20" x="28" y="11"></rect>- <rect width="4" height="20" x="35" y="11"></rect>- </g>- </svg>- </td>- <td>- <p>- The slider shows you where the selected date lies along the timeline. Click and drag the slider to quickly sweep through- a range of dates.- </p>- </td>- </tr>- <tr>- <td class="wv-tour-table-icon">- <i class="wv-tour-timeline-bars-icon"></i>- </td>- <td>- <p>- Click directly on the timeline to jump to a specific day. A blue bar indicates a layer has imagery available. The bar will- be gray if the layer has been turned off and is not visible.- </p>- </td>- </tr>- <tr>- <td class="wv-tour-table-icon">- <i class="wv-tour-timeline-interval-icon"></i>- </td>- <td>- <p>Hover the active zoom level and click on either "Minutes"*, "Days", "Months", or "Years" to expand or compress- the range shown on the timeline.</p>- <p>Note*: "Minutes" will only be shown when there is a subdaily layer available in the active layer list.</p>- </td>- </tr>- </table>- <br>- <p>- <span class="tryIt">Try It!</span>- </p>- <ul>- <li>Change the interval to "Months" and click on July, 2012</li>- <li>Change the interval to "Days" and explore the imagery for that month.</li>- </ul>- </div>- <p class="wv-tour-page-count">(page 1 of 6)</p>- </li>-- <!-- Timeline - Continued -->- <li id="wv-tour-timline-continued" class="bordered" data-id="timeline" data-button="Next" data-options="tipLocation:top;tipAnimation:fade;nubPosition:bottom;prevButton:true;">- <div class="tour">- <h3>Timeline - Continued</h3>- <p>To the left of the timeline the selected day is shown.</p>- <table>- <tr>- <td class="wv-tour-table-icon">- <i class="wv-tour-timeline-day-buttons-icon"></i>- </td>- <td>- <p>Click the left and right arrows to quickly go to the previous or next minute, day, month, or year increment based- on zoom level.</p>- </td>- </tr>- <tr>- <td class="wv-tour-table-icon">- <i class="wv-tour-timeline-entry-icon"></i>- </td>- <td>- <p>Buttons above each portion of the date allow you to quickly go to the previous or next minute, hour, day, month,- or year. Click on the text to type in a specific date.</p>- </td>- </tr>- </table>- <br>- <p>- <span class="tryIt">Try It!</span>- </p>- <ul>- <li>Click on the button above the month to go to August.</li>- <li>Click on the day text, type in "23", and press the return key.</li>- </ul>- </div>- <p class="wv-tour-page-count">(page 2 of 6)</p>- </li>-- <!-- Layer Picker - Base Layers -->- <li id="wv-tour-base-layers" class="bordered" data-id="overlays" data-button="Next" data-options="tipLocation:right;nubPosition:left;tipAnimation:fade;prevButton:true;">- <div class="tour">- <h3>Layer Picker - Base Layers</h3>- <p>- A- <span class="highlight">Base Layer</span>- is an opaque background image - you can have multiple active base layers, but you can only show one at a time unless you- adjust the individual layer settings to reduce the opacity of the uppermost layer(s).- </p>- <p>There are several ways to interact with the layers:</p>- <ul>- <li>Use the- <i class="wv-tour-visible-icon"></i>- icon to show and hide layers.</li>- <li>Use the- <i class="wv-tour-close-icon"></i>- icon to remove layers.</li>- <li>Drag the layers to rearrange them.</li>- </ul>- <p>- <span class="tryIt">Try It!</span>- </p>- <ul>- <li>Click on the- <i class="wv-tour-visible-icon"></i>- for "Corrected Reflectance (True Color) Aqua / MODIS" under Base Layers.</li>- <li>Drag "Corrected Reflectance (True Color) Aqua / MODIS" to the bottom of the list. Notice how the map changes.</li>- <li>Drag "Corrected Reflectance (True Color) Aqua / MODIS" back to the top of the list.</li>- </ul>- </div>- <p class="wv-tour-page-count">(page 3 of 6)</p>- </li>-- <!-- Layer Picker - Continued -->- <li id="wv-tour-overlay-layers" class="bordered wide" data-id="overlays" data-button="Next" data-options="tipLocation:right;nubPosition:left;tipAnimation:fade;prevButton:true;">- <div class="tour">- <h3>Layer Picker - Continued</h3>- <p>- An- <span class="highlight">Overlay</span>- is a partially transparent layer to view on top of the background - you can view multiple overlays at once. Click on the- <i class="fa fa-sliders"></i>- button to adjust the opacity. If the overlay has a color bar, the palette can also be changed here.- </p>- <p>- On the Add Layers (- <i class="fa fa-plus"></i>- <b>- Add Layers</b>) screen, you can search through categories or by keywords to find and add layers.- </p>- <p>- On the- <i class="fa fa-download"></i>- tab, you can download data for layers you are currently viewing.- </p>- <p>- <span class="tryIt">Try It!</span>- </p>- <ul>- <li>Click on the- <i class="fa fa-plus fa"></i>- <b>- Add Layers</b>- button</li>- <li>Type "aqua fires" in the search box.</li>- <li>Add the "Fires and Thermal Anomalies (Day and Night) Aqua/MODIS" overlay by clicking on it.</li>- <li>Click on the- <i class="fa fa-download"></i>- tab to see what data can be downloaded.</li>- <li>Click on the- <i class="wv-tour-active-icon"></i>- tab to see the layers that have been added.</li>- </ul>- </div>- <p class="wv-tour-page-count">(page 4 of 6)</p>- </li>-- <!-- Map -->- <li id="wv-tour-map" class="bordered" data-id="mapPanelTourAnchor" data-button="Next" data-options="tipLocation:left;nubPosition:left;prevButton:true;">- <div class="tour">- <h3>Map</h3>- <p>- There are several ways you can interact with the map to pan or zoom.- </p>- <p>- To pan, drag the map.- </p>- <p>- To zoom:- </p>- <ul>- <li>Use the mouse wheel</li>- <li>Use the +/- icons on the right</li>- <li>Double-click (zooms to location)</li>- <li>Shift-click-drag (zooms in on a box)</li>- </ul>- <p>- <span class="tryIt">Try It!</span>- </p>- <p>- Move the map to North America and zoom in on northern California, USA.- </p>- <img src="images/tour-fire-location.png" alt="Location" class="wv-tour-map" />- </div>- <p class="wv-tour-page-count">(page 5 of 6)</p>- </li>-- <!-- Toolbar -->- <li id="wv-tour-toolbar" class="bordered toolbarTip" data-id="wv-toolbar" data-button="Finish" data-options="tipLocation:bottom;nubPosition:top;tipAnimation:fade;prevButton:true;">- <div class="tour">- <h3>Toolbar</h3>- <p>- The toolbar provides several additional utilities for interacting with @NAME@.- </p>- <table>- <tr>- <td class="wv-tour-table-icon">- <i class="fas fa-share-square fa-2x wv-tour-toolbar-icon"></i>- </td>- <td>- <p>The permalink button lets you create a permanent, shareable link to a particular view in @NAME@.</p>- </td>- </tr>- <tr>- <td class="wv-tour-table-icon">- <i class="fas fa-globe-asia fa-2x wv-tour-toolbar-icon"></i>- </td>- <td>- <p>The globe button lets you change between Arctic, geographic, and Antarctic projections of the world.</p>- </td>- </tr>- <tr>- <td class="wv-tour-table-icon">- <i class="fa fa-camera fa-2x wv-tour-toolbar-icon"></i>- </td>- <td>- <p>The camera button lets you download an image of your current view in @NAME@. User-selected palettes are not yet- supported with this feature.</p>- </td>- </tr>- <tr>- <td class="wv-tour-table-icon">- <i class="fa fa-info-circle fa-2x wv-tour-toolbar-icon"></i>- </td>- <td>- <p>The information button provides you with more information on @NAME@ and its data sources.</p>- </td>- </tr>- </table>- </div>- <p class="wv-tour-page-count">(page 6 of 6)</p>- </li>--</ol>--<!-- TOUR END -->-<div id="wv-tour-end" class="splash">- <center>- <p class="splashwelcome">- You have now completed a tour of @NAME@! If you followed the “Try It” steps, you’re now looking at fires in northern California- as they were observed by satellites on August 23, 2012. You can use the tools in any order. We hope you continue exploring!- </p>- <br>- <p class="splashwelcome">- <a class="feedback">Contact us</a>- if you have any questions about @NAME@.- </p>- <br>- <table class="tour">- <tr>- <td rowspan="2" colspan="2">- <button id="repeat" type="button" class="repeatTour">Repeat Tour</button>- </td>- <td rowspan="2" colspan="2">- <button id="done" type="button" class="done">Done!</button>- </td>- </tr>- </table>- </center>-</div>\ No newline at end of file